:root {
    --background-color: #353535;
    --background-strong-color: #121111;
    --primary-text-color: white;
    --secondary-text-color: white;
    --hover-color: #404040;
    --primary-container-color: #404040;
    --secondary-container-color: #353535;

    --primary-button-color: #121111;
    --secondary-button-color: #b99400;
    --primary-button-hover-color: #ff00ff;
    --secondary-button-hover-color: #ffcc00;
    --primary-button-border-hover-color: #de078c;
    /* --primary-button-border-hover-color: #ff00ff; */
    --secondary-button-border-hover-color: #ffcc00;
    --primary-button-text-color: white;
    --secondary-button-text-color: white;
    --primary-button-hover-text-color: white;
    --secondary-button-hover-text-color: white;

    --primary-link-color: #b99400;
    --secondary-link-color: #ff00ff;
    --primary-link-hover-color: #ffcc00;
    --secondary-link-hover-color: #ffcc00;

    --primary-input-focus-color: #de078c;
    --secondary-input-focus-color: #ff00ff;

    --primary-help-text-color: #b99400;
    --secondary-help-text-color: #ff00ff;

    --primary-error-color: #ff0000;
    --secondary-error-color: #ff4e4e;
}

@font-face {
    font-family: 'JD Neos';
    src: url('../fonts/jd_neos.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Themevck Text';
    src: url('../fonts/themevck-text.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Vermin Vibes 1989';
    src: url('../fonts/Vermin Vibes 1989.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* General */
* {
    padding: 0;
    margin: 0;
}

html {
    background: var(--background-color);
    color: var(--primary-text-color);
}

body {
    overscroll-behavior: none;
    /* font-family: 'JD Neos', sans-serif; */
    /* font-family: 'Themevck Text', sans-serif; */
    /* font-family: 'Vermin Vibes 1989', sans-serif; */
}

a {
    color: var(--primary-text-color);
    text-decoration: none;
}

a.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--primary-button-color);
    border-radius: 8px;
    color: var(--primary-button-text-color);
    cursor: pointer;
    transition: background-color 0.8s;
}
a.btn-primary {
    background: var(--background-strong-color);
}
a.btn-reset {
    background: transparent;
    border: 1px solid red;
}

input[type="date"],
input[type="file"] {
    cursor: pointer;
}

/* Navbar */
nav.navbar-default {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--background-strong-color);
    width: auto;
    height: 50px;
}

.navbar .navbar-brand {
    color: var(--primary-text-color);
    font-size: 24px;
    letter-spacing: 1px;
    word-spacing: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar a:focus-visible,
.navbar a:focus-visible > .icon path {
    outline: none;
    color: var(--primary-link-hover-color);
    text-decoration: underline;
    stroke: var(--primary-link-hover-color);
}

.navbar-right-aligned {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
}

.navbar-right-aligned > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px;
    font-size: 16px;
    color: var(--primary-text-color);
    border-bottom: transparent 2px solid;
    padding-bottom: 14px;
    margin-bottom: 0;
}

.navbar-right-aligned > a.active {
    font-weight: bold;
    border-bottom: orange 2px solid;
    padding-bottom: 14px;
    margin-bottom: 0;
}
.navbar-right-aligned a:hover .icon path {
    stroke: orange;
    stroke-width: 2px;
}

.navbar-right-aligned .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}
.navbar-right-aligned .nav-link:hover {
    color: orange;
    text-shadow: 0 0 15px white;
}

.navbar-language .lang-icon {
    height: 20px;
    width: auto;
    margin: 0;
    border: none;
    vertical-align: middle;
    box-shadow: 0px 0px 6px 2px rgba(255, 255, 255, 0.5);
}
.navbar-language:hover .lang-icon,
.navbar-language:focus-visible .lang-icon {
    box-shadow: 0px 0px 14px 3px rgba(255, 165, 0, 0.8);
}

.nav-profile {
    padding: 7px 8px 7px 16px !important;
}
.nav-link:hover + .dropdown > .dropdown-menu,
.dropdown:hover > .dropdown-menu,
.dropdown-menu:hover {
    display: flex !important;
}

.nav-profile > div {
    display: flex;
    flex-direction: column;
}
.nav-link .icon path {
    color: white;
    stroke: white;
    stroke-width: 2px;
    fill: none;
}

/* Dropdown */
.navbar .dropdown {
    position: relative;
}
.navbar .dropdown .dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    bottom: -101px;
    width: 150px;
    padding: 10px;
    right: 0;
    z-index: 1000;

    background-color: var(--primary-container-color);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    border-radius: 0px 0px 8px 8px;
}

/* Forms */
.form-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 50px 50px 50px;
}

.content-wrapper,
.form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 500px;
    padding: 20px;
    border-radius: 10px;
    background-color: var(--primary-container-color);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-row .form-cell {
    width: 100%;
}

.form-cell, 
.form-cell > div {
    position: relative;
    z-index: 1;
}

.form-cell input:not([type="file"]) {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
}

.form-cell input[type="file"] {
    width: 100%;
}
.form-cell input[type="file"]:focus-visible {
    outline: none;
    color: var(--primary-input-focus-color);
    text-decoration: underline;
}



.form-cell label {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s;
    pointer-events: none;
    color: #9d9d9d;
}

.form-cell input::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: transparent;
}
.form-cell input::-moz-placeholder {
    /* Firefox 19+ */
    color: transparent;
}
.form-cell input:-ms-input-placeholder {
    /* IE 10+ */
    color: transparent;
}
.form-cell input:-moz-placeholder {
    /* Firefox 18- */
    color: transparent;
}

.form-cell input:focus+label,
.form-cell input:not(:placeholder-shown)+label {
    font-size: 14px;
    top: 0;
    background: white;
    border-radius: 6px;
    padding: 0 5px;
    color: #000000;
}

.form-cell-text input,
.form-cell-select select,
.form-cell-textarea textarea,
.form-cell-date input {
    border-radius: 8px;
}

.form-cell-button button,
.form-cell-button input {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    background-color: var(--primary-button-color);
    color: var(--primary-button-text-color);
    cursor: pointer;
}

.form-cell-multibutton {
    display: flex;
    gap: 10px;
}

.form-cell-multibutton button,
.form-cell-multibutton input {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 8px;
    color: var(--primary-button-text-color);
    cursor: pointer;
}

.form-cell-textarea,
.form-cell-select,
.form-cell-file {
    text-align: left;
}

.form-cell-select > div > * {
    width: 100% !important;
}

.form-cell-textarea textarea {
    position: relative;
    width: calc(100% - 20px);
    height: 100px;
    max-height: 350px;
    min-height: 40px;
    resize: vertical;
    padding: 10px;
    z-index: 1;
}

.form-cell-textarea label,
.form-cell-select label,
.form-cell-file label {
    position: relative;
    color: white;
}

.form-cell .errorlist {
    position: relative;
    margin: 0;
    padding: 8px;
    background-color: var(--primary-error-color);
    border-radius: 8px;
    color: var(--primary-text-color);
    text-align: left;
}

.form-cell .errorlist-connector {
    position: absolute;
    background-color: red;
    width: 100%;
    top: -10px;
    left: 0;
    height: 20px;
    margin: 0 !important;
}

.form-cell .errorlist li {
    position: relative;
    list-style: none;
    padding-left: 25px;
}

.form-cell .errorlist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url('/static/svg/iconoir/actions/warning-triangle.svg');
    background-repeat: no-repeat;
    background-size: contain;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.custom-file-wrapper .file-label {
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: auto;
    cursor: pointer;
    width: 100%;
    line-height: 39px;
}

.custom-file-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    border-radius: 8px;
    padding-left: 10px;
    border: 1px solid #ccc;
}

.custom-file-flex-container label {
    color: black;
    transform: none;
    position: inherit;
}

.custom-file-input-buttons {
    display: flex;
    gap: 1px;
}

.custom-file-input-buttons button {
    height: 39px;
    width: auto;
    color: white;
    border: none;
    padding: 0 8px;
    cursor: pointer;
    background: var(--primary-button-color);
    border: 1px solid var(--primary-button-color);
}

.custom-file-input-buttons button:hover,
.custom-file-input-buttons button:focus-visible {
    outline: none;
    border: var(--primary-button-border-hover-color) 1px solid;
    box-shadow: 0 0 10px var(--primary-button-border-hover-color);
}

/* .custom-file-input-buttons .browse-button {
    background: var(--primary-button-color);
    border: 1px solid var(--primary-button-color);
}
.custom-file-input-buttons .clear-button {
    background: var(--primary-error-color);
    border: 1px solid var(--primary-error-color);
} */

.form-cell-help-text {
    color: var(--primary-help-text-color);
    font-size: 14px;
    margin: 5px 15px;
    text-align: left;
}

/* Main */

.extra-link,
p a {
    color: var(--primary-link-color);
    text-decoration: underline;
}
.extra-link:hover,
.extra-link:focus-visible,
p a:hover,
p a:focus-visible,
a.hover:hover,
a.hover:focus-visible {
    outline: none;
    color: var(--primary-link-hover-color);
}

.extra-link {
    display: inline-block;
    margin-top: 20px;
    text-align: center;
}

input:not([type="file"]):focus {
    outline: 2px solid var(--primary-input-focus-color);
}

.main-content-placholder {
    text-align: center;
    margin-top: 50px;
}

main {
    min-height: 70svh;
    margin-bottom: 120px;
}

.flex-center {
    display: flex;
    align-items: center;
    flex-direction: column;
}
.gap8 {
    gap: 8px;
}
.gap12 {
    gap: 12px;
}
.gap16 {
    gap: 16px;
}
.gap20 {
    gap: 20px;
}
.gap24 {
    gap: 24px;
}

main > .center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer {
    position: relative;
    /* margin-top: -60px; Negative margin equal to the height of the disclaimer */
    padding: 0 10px 10px 10px;
    text-align: center;
    z-index: 10;
    background-color: var(--background-strong-color);
    color: white;
    border-top: 1px solid white;
}

.fi-container {
    padding: 20px 10px 20px 10px;
}

.fi-container h3 {
    margin-bottom: 10px;
}

.fi-container li {
    list-style: none;
}

.fi-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.fi-social-link-img {
    height: 31px;
}

button[type="reset"],
a.btn.btn-reset {
    background-color: transparent;
    border: 1px solid red;
    transition: background-color 0.8s;
}
button[type="reset"]:hover,
button[type="reset"]:focus-visible,
a.btn.btn-reset:hover,
a.btn.btn-restet:hover:focus-visible {
    outline: none;
    background-color: #ff06068f;
}

button[type="submit"],
a.btn-primary {
    background-color: black;
    border: black 1px solid;
    transition: border 0.8s, box-shadow 0.8s;
}
button[type="submit"]:hover,
button[type="submit"]:focus-visible,
a.btn-primary:hover,
a.btn-primary:hover:focus-visible {
    outline: none;
    border: var(--primary-button-border-hover-color) 1px solid;
    box-shadow: 0 0 10px var(--primary-button-border-hover-color);
}




/* TOAST CSS */
.toast {
    position: fixed;
    margin: 10px;
    padding: 10px;
    background-color: #444;
    color: #fff;
    opacity: 0;
    cursor: pointer;
    user-select: none;
    min-width: 400px;
    max-width: 400px;
    transition: opacity 0.8s;
}

.toast.top-center {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.toast.top-right {
    top: 10px;
    right: 10px;
}

.toast.top-left {
    top: 10px;
    left: 10px;
}

.toast.bottom-center {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.toast.bottom-right {
    bottom: 10px;
    right: 10px;
}

.toast.bottom-left {
    bottom: 10px;
    left: 10px;
}

.toast.show {
    opacity: 1;
}

.toast:hover {
    opacity: 0.8;
}

.toast.success {
    background-color: #4CAF50;
}

.toast.info {
    background-color: #2196F3;
}

.toast.warning {
    background-color: #ff9800;
}

.toast.error {
    background-color: #f44336;
}



.no-transition {
    transition: none !important;
}

.navmenu .overlay {
    height: 0%;
    width: 100%;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
    overflow-y: hidden;
    transition: 0.5s;
}

.navmenu .nav-icon {
    display: none;
    margin-right: 20px;
    cursor: pointer;
}
.navmenu .overlay:not(.open) * {
    user-select: none;
}
.navmenu .overlay.open {
    height: 100svh;
    width: 100svw;
}

.navmenu .overlay {
    color: #818181;
}

.overlay-content {
    margin-top: 60px;
}   

.overlay-content small {
    display: block;
    margin: 0 20px;
    font-size: 14px;
    color: #cacaca;
    line-height: 17px;
}

.overlay-content a {
    padding: 8px 15px;
    text-decoration: none;
    font-size: 30px;
    color: #818181;
    display: block;
    transition: 0.3s;
}
.overlay-content a.active {
    font-weight: bold;
    color: white;
    background: linear-gradient(90deg, rgba(0,0,0,0) 10px, rgba(0,0,0,0) 10px, rgba(255,119,0,0.5) 10px, rgba(255,119,0,0.10) 20%, rgba(255,119,0,0) 100%);
}

.overlay-content a:hover,
.overlay-content a:focus-visible {
    color: orange;
    text-decoration: underline;
}

.overlay a .icon path {
    color: #818181;
    stroke: #818181;
    stroke-width: 2px;
    fill: none;
}

.overlay-content-block:not(:last-child) {
    position: relative;
    margin-bottom: 15px;
}

.overlay-content-block:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -8px;
    border-bottom: 1px solid #818181;
}

.navmenu .overlay-header {
    position: absolute;
    top: 0;
    width: 100%;
}

.overlay-header {
    color: #818181;
    font-size: 16px;
}

.overlay-header .overlay-profile {
    display: flex;
    flex-direction: column;
    padding: 10px;
    margin-right: 45px;
    font-size: 16px;
}

.navmenu .overlay-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
}

.overlay-footer .overlay-language {
    margin: 10px;
    z-index: 10;
}
.overlay-footer .overlay-language .lang-icon {
    height: 30px;
    width: auto;
    margin: 0;
    border: none;
    vertical-align: middle;
    box-shadow: 0px 0px 6px 2px rgba(255, 255, 255, 0.5);
}
.overlay-footer .overlay-language:hover .lang-icon,
.overlay-footer .overlay-language:focus-visible .lang-icon {
    box-shadow: 0px 0px 14px 3px rgba(255, 165, 0, 0.8);
}

.closebtn {
    position: absolute;
    padding: 10px 20px;
    right: 0;
    font-size: 44px;
    line-height: 30px;
    z-index: 10;
    text-decoration: none !important;
}
.closebtn:hover {
    color: orange;
}

.page-baner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding: 40px 20px 70px 20px;
    text-align: center;
}

.grid-list {
    position: relative;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, minmax(400px, 1fr));
    padding: 0 50px;
}

.grid-list-item {
    padding: 8px;
    display: grid;
    grid-template-columns: 25% 1fr;
    cursor: pointer;
    transition: all 0.8s ease;
}
.grid-list-item:hover {
    background-color: var(--hover-color);
}   
.grid-list-item.fade {
    opacity: 0.8;
}

.grid-list-item img {
    width: 100%;
    height: auto;
    max-height: 90px;
    object-fit: cover;
    margin-top: auto;
    margin-bottom: auto;
}

.grid-list-item table {
    padding: 8px;
    table-layout: fixed;
}

.grid-list-item table td {
    /* padding: 8px; */
    vertical-align: top;
}

.grid-list-item table td:first-child {
    font-weight: bold;
    width: 100px; /* Set a fixed width for the labels */
}

.grid-list-item table td:last-child {
    width: calc(100% - 100px); /* Adjust the width of the content */
    padding-left: 15px;
}

.grid-list-item > div > div {
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align items to the start */
}

.grid-list-item p {
    margin: 0;
    padding-left: 10px; /* Add padding to align text */
    width: 100%; /* Ensure the width is 100% */
}

.grid-list-item p strong {
    display: inline-block;
    width: 150px; /* Set a fixed width for the labels */
}

.grid-list-item .additional-info {
    display: none;
    padding: 0px;
    margin-top: 10px;
}

.grid-list .empty-for {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.grid-list-item.expanded {
    grid-column: span 2;
    grid-template-columns: 30% 1fr;
}

.grid-list-item.expanded img {
    width: 100%;
    height: auto;
    max-height: 137px;
}

.grid-list-item.expanded div {
    display: block;
}

.grid-list-item.hidden {
    display: none !important;
}

.right-border-rad {
    border-radius: 0 8px 8px 0;
}

.left-border-rad {
    border-radius: 8px 0 0 8px;
}

.error-page {
    margin-top: 100px;
    margin-bottom: 60px;
}

.dsgvo {
    margin: 50px 30px;
}
.dsgvo h1 {
    text-align: center;
}
.dsgvo h1, .dsgvo h2, .dsgvo h3, .dsgvo h4, .dsgvo h5, .dsgvo h6 {
    margin: 25px 0 10px 0;
}
.dsgvo p {
    margin-bottom: 15px;
}
.dsgvo ul {
    margin-left: 15px;
    margin-bottom: 15px;
}

main section {
    margin: 30px 0;
}

#info-section {
    padding: 0 20px;
}

.job-application-section,
.project-section {
    padding: 20px;
}

.bizarre-section {
    position: relative;
    padding: 20px 4%;
    margin: 40px 10px;
    background-color: var(--primary-container-color);
    color: var(--primary-text-color);
    overflow: hidden; /* Ensure the pseudo-elements don't affect the layout */
    min-height: 120px;
    width: 600px;
    clip-path: polygon(0 0, 97% 0, 100% 100%, 3% 100%);
}
.bizarre-section a {
    margin-top: 25px;
}

#in-progress-banner {
    position: fixed;
    bottom: 20px;
    right: 0;
    display: flex;
    gap: 5px;
    align-items: center;
    z-index: 100;
    background: var(--background-strong-color);
    padding: 8px;
    border: solid  2px white;
    border-right: none;
    border-radius: 20px 0 0 20px;
}

#in-progress-banner svg, #in-progress-banner svg * {
    stroke: white;
}

/* Select2 */
.select2-container {
    color: black;
}

.select2-container .select2-selection--single {
    height: 40px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 35px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.select2-container--default .select2-results__option[aria-disabled=true] {
    display: none;
}

.select2-container--default .select2-selection--single {
    border-color: white;
    border-width: 3px;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-input-focus-color), .25);
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-input-focus-color);
    border-width: 3px;
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-input-focus-color), .25);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--primary-button-border-hover-color);
}


/* Messages */
.messages {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 60px 0 60px;
}

.messages div {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.messages .success {
    background-color: #0d8412;
}
.messages .info {
    background-color: #1c70b3;
}
.messages .warning {
    background-color: #c98726;
}
.messages .error {
    background-color: #9e3027;
}

.info-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 0 50px;
}

.info-box-item {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    font-size: 16px;
    background-color: var(--primary-container-color);
    color: var(--primary-text-color);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay.open {
    display: flex;
}

.popup-content {
    background: var(--background-color);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    position: relative;
    height: 60svh;
    width: 80%;
    min-height: 400px;
    min-width: 600px;
    max-height: 90svh;
    max-width: 800px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}

.popup-thumbnail img {
    height: auto;
    width: 100%;
    max-height: 225px;
    object-fit: fill;
}