body {
    color: blue;
}

html,
body {
    background: white url('images/trinkxtrem.PNG') no-repeat;
    background-position: 90% 30%;
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Verdana, sans-serif;
    font-size: 14px;
    color: #555;
}

h1 {
    font-family: "Palatino Linotype", Arial, sans-serif;
    font-weight: normal;
    margin: 0;
    padding: 10px 15px 10px 0px;
}

h2 {
    font-family: Verdana, sans-serif;
    font-size: 18px;
    font-weight: normal;
}

h3 {
    font-family: Verdana, sans-serif;
    font-size: 15px;
    font-weight: normal;
    font-style: italic;
    margin: 18px 0px 1px 0px;
}

disabled {
    pointer-events: none;
    opacity: 0.5;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
}

input[type='text'],
input[type='number'],
input[type='password'] {
    display: block;
    padding: 3px;
}

input[type="number"] {
    -moz-appearance: textfield !important;
}

label {
    display: block;
    margin-top: 10px;
    width: max-content;
}

select {
    padding: 2px;
    min-width: 100px;
}

select option {
    padding: 1px;
}

form {
    margin-bottom: 10px;
}

.horizontal-nav li {
    display: inline-block;
}

#siteNav {
    background: #083496;
    display: flex;
    justify-content: space-between;  /* Links = Navigation, Rechts = Status */
    align-items: center;
    padding: 0 15px;
}

#siteNav ul.nav-left {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#siteNav li {
    padding: 10px 5px;
}

#siteNav a {
    color: white;
    font-size: 15px;
    text-decoration: none;
}

/* Punkt-Style */
.status-dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.yellow { background-color: #FFD700; } /* Gelb */
.status-dot.green  { background-color: #32CD32; } /* Grün */

.status-text {
    color: white;
    font-size: 15px;
}


#content {
    padding-left: 15px;
    min-width: 490px;
    max-width: 750px;
}

#statusTable {
    border-spacing: 0;
}

#statusTable th {
    background: #eee;
    color: #555;
    font-weight: normal;
    text-align: left;
    padding: 10px;
    page-break-inside: avoid;

}

#statusTable tr td:nth-child(2) {
    width: 200px;
}

#error_chart {
    display: block;  /* Um sicherzustellen, dass das Chart sichtbar ist */
    min-width: 500px;  /* Ändere die Breite nach Wunsch */
    max-width: 100%;  /* Maximal 100% der verfügbaren Breite */
    height: 400px;  /* Die Höhe kannst du nach Bedarf anpassen */
    margin-bottom: 15px;
}
#statusTable #headerNav {
    background: #ddd;
    padding: 7px;
}

#headerNav ul {
    text-align: right;
    margin-right: 15px;
}

#headerNav li {
    padding: 0px 7px 0px 7px;
}

#headerNav a {
    color: #555;
}

body {
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
}

.gt-vtabs-nav {
    display: flex;
    flex-direction: column;
    width: 200px;
    border-right: 1px solid #ccc;
    padding-right: 10px;
}

.gt-vtabs-header {
    padding: 10px;
    cursor: pointer;
    border: none;
    background: none;
    text-align: left;
    width: 100%;
    background-color: #eee;
    color: #444;
    font-size: 15px;
    transition: 0.4s;
}

.gt-vtabs-header.active,
.gt-vtabs-header:hover {
    background-color: #ccc;
}

.gt-vtabs-panel {
    display: none;
    padding: 0px 20px;
    background-color: white;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    width: 60%;
}

.gt-vtabs-panel.active {
    display: block;
}

.horizontal-btn-group {
    margin: 10px;
    display: inline-block;
    vertical-align: top;
}

.vertical-btn-group {
    display: inline-block;
    vertical-align: top;
}

.vertical-btn-group input[type='submit'] {
    margin: 0px 0px 4px 0px !important;
    width: 100px;
}

.container-r {
    display: flex;
    margin-bottom: 20px;
}

.selection-container {
    margin-right: 20px;
}

.input-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.input-header {
    grid-column: span 6;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    text-align: left;
}

.input-item {
    display: flex;
    flex-direction: column;
}

.input-item button-container {
    margin-top: 10px;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.chart-container-r {
    width: 100%;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.button-container-lower {
    margin-top: 20px;
}

canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 500px;
}

.results-container {
    background-color: #eee;
    padding-left: 15px;
    padding: 10px;
    width: 220px;
    height: 100vh;
    position: relative;
    display: inline-block;
    vertical-align: top;
}

#results-content {
    height: 100%;
}

#summary-selection {
    padding-right: 25px;
    position: relative;
    vertical-align: top;
    display: block;
}

#show-details-button {
    background-color: #c89602;
}

#summary-warning-message {
    display: none;
    width: 220px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#download-warning-message {
    display: none;
    width: 220px;
}

.selection-container-results {
    padding-right: 25px;
    position: relative;
    vertical-align: top;
    display: block;
}

#header-container {
    margin: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#legend-header {
    display: none;
}

#download-div {
    visibility: visible;
}

#summary-results-pattern-fill {
    accent-color: black;
}

#summary-results-pattern-fill-label {
    color: black;
    margin-top: 100%;
}

#details-selection {
    display: none;
}

.chart-container-result-input,
.chart-container-result-output {
    width: 60%;
    height: 400px;
    vertical-align: top;
    margin-left: 10px;
}


#summary-charts-container {
    display: inline-block;
    height: 800px;
}

#dependent-variable-charts-container {
    display: flex;
    flex-wrap: wrap;
}

#dependent-variable-charts-container canvas {
    max-width: 330px;
    max-height: 330px;
    margin: 20px;
}


#detail-chart-container {
    display: none;
}

#hiddenSelect {
    display: none;
}

/* Gewichte */

#weights {
    padding: 5px;
}

#weights * {
    text-align: center;
}

.subcontainer {
    padding: 10px;
}


.weights-input-container {
    display: flex;
    justify-content: space-evenly;

}

.weights-input-header {
    font-size: medium;
    font-weight: 600;
    text-align: center;
    padding-bottom: 5px;

}

#zielebene-1-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    background-color: #a3a3a3;
}

#zielebene-2-container {
    background-color: #cccccc;
    padding: 10px;
    border-radius: 10px;
}

.group {
    margin: 10px;
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#left-group,
#right-group {
    border-radius: 10px;
}

.weights-input-item {
    display: flex;
    flex-direction: column;
}

.zielebene-2-input-item {
    display: flex;
    justify-content: center;
    font-size: large;
}

.zielebene-3-container {
    display: none;
}

#zielebene-3-subcontainer-container {
    display: flex;
    justify-content: space-evenly
}

#zielebene-3-quality-container {
    display: flex;
    flex-direction: column;
}

.quality-input-item {
    display: flex;
    flex-direction: row;
    font-size: large;
    justify-content: space-between;
}

.weights-button-container {
    padding: 10px;
    display: flex;
    justify-content: center;
}

.zielebene-3-form {
    overflow-y: scroll;
    max-height: 180px;
}

input {
    align-self: center;
}

#weights label {
    text-align: center;
    padding: 0 10px;
}

.zielebene-2-label {
    margin: 0;
    padding: 3px 10px;
}

.form-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form label,
form input[type="text"],
form input[type="submit"] {
    display: block;
    margin-bottom: 10px;
}

.popup-overlay {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.5);

}

.popup {

    font-family: Arial, sans-serif;

    position: absolute;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    background: #fff;

    padding: 20px;

    border-radius: 8px;

    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

}

.popup-content {

    text-align: center;

}

.popup .close {

    position: absolute;

    top: 10px;

    right: 10px;

    font-size: 20px;

    cursor: pointer;

    color: #333;

}

.popup #name_input {

    width: 80%;

    padding: 10px;

    margin: 10px 0;

    border: 1px solid #ddd;

    border-radius: 4px;

}

.popup button {

    background-color: #4caf50;

    color: #fff;

    padding: 10px 20px;

    border: none;

    border-radius: 4px;

    cursor: pointer;

    font-size: 16px;

}

.chart-legend {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.legend-color {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 3px;
}

.upload-form {
    display: flex;
    flex-direction: column;  /* Alles untereinander */
    width: 260px;            /* gleiche Breite wie Dropdowns */
    gap: 12px;               /* Abstand zwischen den Blöcken */
}

.small-select,
#id_file_resource,
.button-group input[type="submit"] {
    width: 100%;             /* passt sich der Form-Breite an */
    box-sizing: border-box;  /* verhindert Überlauf */
    padding: 4px;
}

.button-group {
    display: flex;
    justify-content: flex-end; /* Button nach rechts */
}

.slider-container {
    position: relative;
    width: 100%;
    height: 30px;
}

/* beide Sliders voll klickbar */
.slider-container input[type=range] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    pointer-events: auto;  /* <-- WICHTIG */
    background: none;
}

/* nur das Track auf nicht-klickbar setzen */
.slider-container input[type=range]::-webkit-slider-runnable-track {
    pointer-events: none;  /* <-- Track ignoriert Klicks */
}

/* die Thumbs müssen klickbar bleiben */
.slider-container input[type=range]::-webkit-slider-thumb {
    pointer-events: auto;  /* <-- Thumb ist klickbar */
    position: relative;
    z-index: 2;
}

/* Firefox */
.slider-container input[type=range]::-moz-range-thumb {
    pointer-events: auto;
}
.slider-container input[type=range]::-moz-range-track {
    pointer-events: none;
}