:root {
    --accent-color: rgb(255, 149, 0);
    --text-color: black;
    --body-background: #ffffff;
    --project-background: rgb(240, 240, 240);
    --border-color: rgb(20, 20, 20);
    --box-shadow: rgba(0, 0, 0, 0.296);
    --input-background: rgb(246, 246, 246);
    --switched-color: white;
    --table-background: #d3d3d3;
    --table-header: #d45f00;
    --slow-animation: 1s;
    --medium-animation: 0.8s;
    --speed-animation: 0.5s;
}

@media (prefers-color-scheme: dark) {
    :root {
        --switched-color: black;
        --accent-color: rgb(255, 149, 0);
        --text-color: rgb(255, 255, 255);
        --body-background: #171717;
        --project-background: rgb(30, 30, 30);
        --border-color: #ffffff;
        --box-shadow: rgba(255, 255, 255, 0.296);
        --input-background: rgb(31, 31, 31);
        --slow-animation: 1s;
        --medium-animation: 0.8s;
        --speed-animation: 0.5s;
    }
}

::selection {
    color: white;
    background-color: var(--accent-color);
}

* {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--body-background);
    font-family: Arial, sans-serif;
}

.header {
    z-index: 3;
    position: absolute;
    align-self: center;
    color: var(--text-color);
    padding-bottom: 15px;
    margin: 0;
    font-size: 25px;
    -webkit-animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both 0.4s;
    animation: fade-in 1.2s cubic-bezier(0.390, 0.575, 0.565, 1.000) both 0.4s;
}

.titel-container {
    position: relative;
    display: flex;
    justify-content: center;
    clip-path: polygon(0% 0%, 101% 0%, 50% 100%);
    margin-top: -15px;
    -webkit-animation: slide-in-top var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-top var(--medium-animation) cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.banner {
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 2;
    filter: brightness(0.40);
}

.error-display {
    position: fixed;
    top: 10px;
    width: 40%;
    background-color: rgba(148, 0, 0, 0.882);
    backdrop-filter: blur(3px);
    align-self: center;
    justify-self: center;
    padding: 10px 8px;
    z-index: 9999999;
    color: white;
    overflow: hidden;
    border-radius: 8px;
    display: none;
    flex-direction: row;
    align-items: center;
    user-select: none;
    -webkit-animation: slide-in-top 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-top 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.error-display.success {
    background-color: rgb(0, 111, 0);
}

.error-display.info {
    background-color: rgb(0, 126, 180);
}

.error-display.copied {
    background-color: rgb(77, 74, 71);
}

#errorDisplayText {
    width: calc(100% - 70px);
    display: flex;
    justify-content: center;
    font-size: 18px;
    font-family: sans-serif;
    font-weight: 600;
    text-align: center;
    word-break: keep-all;
    overflow-wrap: normal;
    padding: 0 10px;
}

.error-display-timer {
    position: absolute;
    bottom: 3px;
    right: 5px;
    font-size: 13px;
    color: rgb(195, 195, 195);
}

#errorDisplayIcon {
    font-size: 30px;
    margin-left: 5px;
}

.custom-checkbox {
    position: relative;
    display: inline-block;
    height: fit-content;
    margin: 5px;
}

.custom-checkbox input[disabled]+label::after {
    content: "Nicht Verfügbar";
    font-style: italic;
}

.custom-checkbox input[disabled]+label {
    border: none;
    width: fit-content;
}

.custom-checkbox input[disabled]+.projekt {
    background-color: gray !important;
}

/* Radio-Button unsichtbar machen */
.custom-checkbox input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

/* Sichtbare „Box“ */
.custom-checkbox label {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: white;
    border: 2px solid #888;
    border-radius: 6px;
    /* 6px für eckig mit leichtem Radius */
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Wenn aktiv (ausgewählt) */
.custom-checkbox input[type="radio"]:checked+label {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Häkchen anzeigen */
.custom-checkbox input[type="radio"]:checked+label::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-size: 18px;
    color: white;
}

.button {
    align-self: center;
    padding: 7px 12px;
    background-color: var(--body-background);
    color: var(--text-color);
    border: 1px solid gray;
    border-radius: 20px;
    z-index: 3;
    transition: background-color 0.3s ease;
}

.button:hover {
    cursor: pointer;
    background-color: color-mix(in srgb, var(--body-background) 80%, var(--text-color));
}

.overlay {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.873);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    -webkit-animation: fade-in 0.8s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
    animation: fade-in 0.8s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.popup {
    background: linear-gradient(35deg, rgb(46, 46, 46), rgb(94, 94, 94));
    padding: 10px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 40%;
    min-height: 100px;
    -webkit-animation: flip-in-hor-bottom 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: flip-in-hor-bottom 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.close-x {
    position: absolute;
    top: 7px;
    right: 17px;
    color: white;
    font-size: 16px;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
}

.close-x:hover {
    background-color: rgb(193, 0, 0);
    border-radius: 50%;
    cursor: pointer;
}

.no-script {
    background-color: rgb(116, 0, 0);
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
    pointer-events: all;
}

.no-script-container {
    border: 2px solid white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    max-width: 85%;
}

.no-script-icon {
    font-size: 40px !important;
}

.no-script-explain a {
    font-size: 17px;
    color: rgb(231, 231, 231);
}

@media only screen and (max-width: 680px) {
    .error-display {
        width: 90%;
    }

    .banner {
        height: 130px;
    }

    .popup {
        max-width: 90%;
    }

    .close-x {
        right: 7px;
    }

    .no-script-container {
        flex-direction: row;
    }

    .titel-container{
        margin-top: 0;
    }

    .header{
        font-size: 20px;
        padding-bottom: 33px;
    }
}