@import "pico.css";

@font-face {
    font-family: "Anton";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        url("../fonts/Anton-Regular.woff2") format("woff2"),
        url("../fonts/Anton-Regular.ttf") format("ttf");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* custom variables */
:root {
    --global-background-color: #ffffff;
    --primary-bg-color: #22a4c0;
    --primary-text-color: #ffffff;
    --secondary-bg-color: #20223d;
    --secondary-text-color: #ffffff;
    --text-color: #20223d;
    --box-background-color: #eef9fc;
    --welcome-background-color: transparent;
    --welcome-text-color: #0e7288;
    --slider-disabled-color: #e1e1e1;
    --progress-done-color: #22a4c0;
    --progress-todo-color: #20223d;
}

/* general styles */
html {
    padding: 0 0 0 0;
    font-family: "Montserrat", "Roboto", sans-serif;
    margin: 0;
    min-height: 100%;
}

body {
    background-size: 100%;
    background: linear-gradient(var(--position), var(--top-color) var(--top), var(--bottom-color) var(--bottom));
    color: var(--text-color);
    position: relative;
    min-height: 100vh;
    margin: 0;
    height: auto;
    padding-bottom: 2.5rem;
}

.parent-white {
    display: none;
}

address,
blockquote,
dl,
ol,
p,
pre,
table,
ul {
    color: var(--text-color);
}

table td,
table th {
    border-color: rgba(107, 107, 107, 0.4);
    background-color: transparent;
}

tr > th {
    font-weight: bold;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Source Sans 3", sans-serif;
    color: var(--text-color);
}

.article {
    z-index: 1;
    text-align: center;
    background-color: var(--box-background-color);
    border-radius: 1rem;
    margin-top: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 576px) {
    .article {
        padding: 2rem 3rem;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .article {
        padding: 2.2rem 4rem;
        max-width: 90%;
    }
}

@media (min-width: 1300px) {
    .article {
        padding: 2.4rem 6rem;
        max-width: 80%;
    }
}

.article-variation {
    text-align: left !important;
}

.text-bold {
    font-weight: bold;
}

.inline-block {
    display: inline-block;
}

.hidden {
    display: none !important;
}

/* margin */
.m-1 {
    margin: 1rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

/* title */
.welcome-parent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.welcome {
    color: white;
    background-color: var(--primary-bg-color);
    padding: 0.3rem 2rem;
    margin: 0.3rem 0;
    border-radius: 5px;
}

.text-position {
    text-align: left !important;
    margin-top: 4rem;
    align-items: start;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.company-special,
.culturecheck-result {
    font-weight: bold;
    text-transform: uppercase;
}

/* forms */
.primary-button {
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    font-weight: bold;
    border: 0;
    padding: 0.8rem 2rem;
    filter: brightness(100%);
    margin-top: 1rem;
}

.primary-button:hover {
    filter: brightness(103%);
}

.secondary-button {
    background-color: var(--primary-bg-color);
    color: var(--secondary-text-color);
    font-weight: bold;
    border: 0;
    padding: 0.5rem 1rem;
    filter: brightness(100%);
}

.secondary-button-outline {
    background-color: transparent;
    border: 1px solid var(--primary-bg-color);
    color: var(--primary-bg-color);
    font-weight: bold;
    padding: 0.5rem 1rem;
    filter: brightness(100%);
}

.secondary-button:hover {
    filter: brightness(110%);
}

.secondary-button-outline:hover {
    filter: brightness(120%);
}

a[role="button"],
button {
    border-radius: 0.3rem;
    width: auto;
}

input.input {
    border-radius: 2rem !important;
    width: auto !important;
    padding: 0.5rem 2rem !important;
    height: 48px !important;
}

input.input:focus,
input.input:active {
    border: 1px solid var(--secondary-bg-color) !important;
}

/* Logo*/

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}

.logo:after {
    content: url("/views/img/codestryke.svg");
}

/* header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2.5rem;
    background-color: var(--global-background-color);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--primary-bg-color) 20%, transparent);
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}
.header::after {
    content: "";
    display: inline-block;
    width: 100%;
    height: 26px;
    background-image: url("/views/img/codestryke.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
}

/* footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 2.5rem;
    background-color: var(--secondary-bg-color);
    border-top: 0.1rem solid var(--primary-bg-color);
    z-index: 1;
}

.cc {
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
}

.imprint {
    display: none;
}
.imprint > a {
    display: none;
}

/* progress bar */
progress {
    color: var(--progress-done-color);
    accent-color: var(--progress-done-color);
    background-color: var(--progress-todo-color);
}
progress::-moz-progress-bar {
    background: var(--progress-done-color) !important;
}
progress::-webkit-progress-value {
    background: var(--progress-done-color) !important;
}

.progress-text {
    text-align: right;
    margin-top: -1rem;
    color: var(--progress-todo-color);
    font-weight: 500;
}

/* range slider */
.range-parent {
    width: 85%;
    margin: 2rem auto;
    position: relative;
}

.slider {
    position: relative;
    z-index: 0;
}

/* Position der Kreise über dem Slider */
.circle-row {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: -4.5px;
    left: 0;
    right: 0;
    pointer-events: none;
}

.circle-row div {
    width: 33px;
    height: 33px;
    background: white;
    border-radius: 50%;
}

.circle-row div div {
    width: 33px;
    height: 33px;
    background: var(--secondary-bg-color);
    border-radius: 50%;
}

/* Slider Thumb – Firefox */
.slider::-moz-range-thumb {
    width: 36px;
    height: 36px;
    background: var(--primary-bg-color);
    border-radius: 50%;
    cursor: pointer;
    outline: 3px solid white;

}

/* Slider Track – Firefox */
.slider::-moz-range-track {
    height: 6px;
    background: var(--secondary-bg-color);

}

/* Slider Thumb – Chrome/Safari */
.slider::-webkit-slider-thumb {
    width: 36px;
    height: 36px;
    background: var(--primary-bg-color);
    border-radius: 50%;
    cursor: pointer;
    outline: 3px solid white;
    margin-top: -15px;
    appearance: none;

}

/* Slider Track – Chrome/Safari */
.slider::-webkit-slider-runnable-track {
    height: 6px;
    background: var(--secondary-bg-color);
    border-radius: 3px;

}

/* Zustand: Disabled – Kreise abdunkeln */
.range-parent:has(.slider:disabled) .circle-row div div {
    position: relative;
    background: var(--slider-disabled-color);
}

#selectedCircle {
    background-color: var(--secondary-bg-color);
    position: relative;
    z-index: 3;
}

/* Zustand: Disabled – Firefox */
.slider:disabled::-moz-range-thumb {
    opacity: 1;
    cursor: not-allowed;
    background: transparent;
    border-color: transparent;
    outline: 0;
}

.slider:disabled::-moz-range-track {
    background: var(--slider-disabled-color);
}

/* Zustand: Disabled – Chrome/Safari */
.slider:disabled::-webkit-slider-thumb {
    opacity: 1;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.1);
    border-color: transparent;
    outline: 0;
}

.slider:disabled::-webkit-slider-runnable-track {
    background: var(--slider-disabled-color);
}

.range datalist option {
    width: 33px;
    height: 33px;
    min-height: 33px;
    border-radius: 100px;
    white-space: nowrap;
    padding: 0;
    line-height: 40px;
    background-color: var(--progress-done-color);
}

/* Labels unter dem Slider */
.range-label {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: -2rem;
}

.agreeIcon,
.disagreeIcon {
    background-color: var(--primary-bg-color);
    color: var(--primary-text-color);
    display: inline-block;
    font-weight: bold;
    padding: 0.5rem 0.75rem 0.5rem calc(1rem + 30px);
    margin: -1rem 0 1rem 0;
    position: relative;
    text-transform: uppercase;
}

.agreeIcon:before {
    position: absolute;
    content: url("/views/img/thumbsup.svg");
    left: 0.5rem;
}

.disagreeIcon:before {
    position: absolute;
    content: url("/views/img/bulb.svg");
    left: 0.5rem;
}

.agreeIconSmall,
.disagreeIconSmall {
    display: inline-block;
    position: relative;
    margin-left: -0.5rem;
    padding-left: 2.5rem;
}

.agreeIconSmall:before {
    position: absolute;
    content: url("../img/thumbsup-e47808.svg");
    left: 0.5rem;
}

.disagreeIconSmall:before {
    position: absolute;
    content: url("../img/bulb-e47808.svg");
    left: 0.5rem;
}

.iframe {
    width: 100%;
    height: 70vh;
    border: 0;
}
.errorMessage {
    color: red;
}

/* Responsive table without horizontal scrolling */
#summaryAnswerTable {
    table-layout: fixed;
    width: 100%;
    word-wrap: break-word;
}

#summaryAnswerTable td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    vertical-align: top;
    padding: 1rem;
}

.range-label {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: -2rem;
}

.range-label > div {
    width: auto !important;
    min-width: 8rem;
    flex: 1;
    padding: 0.5rem;
}

/* Mobile responsiveness - stack elements vertically */
@media (max-width: 768px) {
    .range-label {
        flex-direction: column;
        align-items: center;
        margin-top: -1rem;
    }

    .range-label > div {
        width: 100% !important;
        min-width: unset;
        text-align: center !important;
        margin-bottom: 0.5rem;
        padding: 0.25rem;
    }

    .range-parent {
        width: 100%;
        margin: 1rem auto;
    }

    .article {
        padding: 1rem !important;
    }
}

/* Remove the table-responsive overflow for vertical expansion */
.table-responsive {
    overflow-x: visible;
}