/* lobid.org Autocomplete */
.lobid-autocomplete {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 0;
}

.lobid-autocomplete li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.lobid-autocomplete li:last-child {
    border-bottom: none;
}

.lobid-autocomplete li:hover,
.lobid-autocomplete li.lobid-active {
    background-color: #e9ecef;
}

.lobid-autocomplete li small {
    display: block;
    color: #6c757d;
    font-size: 0.78rem;
}

.lobid-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

/* ibm-plex-sans-300 - latin */
:root {
    --font-light: 300;
    --font-regular: 400;
    --font-semibold: 500;
    --font-bold: 600;

    --color-btn-primary: #4BACC2;
    --color-black: #000;
    --color-background: #D9DADB;
    --color-box-background: #FAF9F7;

    --modal-link: rgb(13, 110, 253);
    --modal-link-hover: rgb(10, 88, 202);

    /* Frontend statistic chart colors */
    --chart-color-new: #a0c5ce;
    --chart-color-correction: #499daf;
    --chart-color-final-correction: #7d89f4;
    --chart-color-completed: #3a7e8c;
}

@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 300;
    src: url('../Fonts/ibm-plex-sans-v22-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../Fonts/ibm-plex-sans-v22-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 500;
    src: url('../Fonts/ibm-plex-sans-v22-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 600;
    src: url('../Fonts/ibm-plex-sans-v22-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-condensed-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'IBM Plex Sans Condensed';
    font-style: normal;
    font-weight: 300;
    src: url('../Fonts/ibm-plex-sans-condensed-v14-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-condensed-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'IBM Plex Sans Condensed';
    font-style: normal;
    font-weight: 400;
    src: url('../Fonts/ibm-plex-sans-condensed-v14-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-condensed-500 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'IBM Plex Sans Condensed';
    font-style: normal;
    font-weight: 500;
    src: url('../Fonts/ibm-plex-sans-condensed-v14-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ibm-plex-sans-condensed-600 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'IBM Plex Sans Condensed';
    font-style: normal;
    font-weight: 600;
    src: url('../Fonts/ibm-plex-sans-condensed-v14-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html {
    font-size: 10px;
}

body {
    /* background-color: #e6e9ed; */
    /* background-color: #c8c8c8; */
    background-color: var(--color-background);

    font-family: IBM Plex Sans, sans-serif;
    font-weight: var(--font-regular);
    font-size: 1.8rem;
    line-height: 1.5;
    color: #000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: IBM Plex Sans Condensed, sans-serif;
    font-weight: var(--font-semibold);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 7.2rem;
}

.h2, h2 {
    font-size: 2.4rem;
}

.h3, h3 {
    font-size: 2.4rem;
}

.h5, h5 {
    font-size: 1.8rem;
}

.btn-group-sm > .btn, .btn-sm {
    font-size: 1.6rem;
    border-radius: 0;
}

#crowdsourcing .container-fluid {
    padding-right: var(--bs-gutter-x,10%);
    padding-left: var(--bs-gutter-x, 10%);
}

.main-nav .logo a {
    display: inline-block;
    position: relative;
    text-decoration: none;
}

.main-nav .gap-4 {
    gap: 5.5rem !important;
}

.main-nav-links a {
    font-family: IBM Plex Sans Condensed, sans-serif;
    font-weight: var(--font-semibold);
    letter-spacing: -0.02em;
    text-decoration: none;
    color: #000;
}

.main-nav-links a:hover {
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
    text-decoration-color: var(--color-btn-primary);
}

.main-nav-links a.active {
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
    text-decoration-color: var(--color-btn-primary);
}

.main-nav .login,
.main-nav .register {
    font-family: IBM Plex Sans Condensed, sans-serif;
    font-size: 1.8rem;
    font-weight: var(--font-regular);
    letter-spacing: inherit;
}

.main-nav #userDropdownMenu {
    font-family: IBM Plex Sans Condensed, sans-serif;
    font-size: 1.8rem;
    margin-left: 6px !important;
    margin-top: 2px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 0;
}

#crowdsourcing .btn-primary {
    color: #fff;
    background-color: var(--color-btn-primary);
    border-color:  var(--color-btn-primary);
}

#crowdsourcing .meta-nav {
    font-family: IBM Plex Sans Condensed, sans-serif;
    font-size: 16px;
    font-weight: var(--font-light);
    letter-spacing: inherit;
    text-decoration: none;
}

#crowdsourcing .meta-nav ul li {
    list-style: none;
}

#crowdsourcing .meta-nav .text-secondary {
    color: #000000 !important;
}

#crowdsourcing .main-nav {
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 5px;
}

#crowdsourcing .main-nav .d-flex.gap-4 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#crowdsourcing .main-nav .d-flex.justify-content-between {
    position: relative;
    height: 40px;
}


#crowdsourcing .landing-page-main .content-wrapper {
    text-align: center;
    /* max-width: 800px; */
    margin: 80px auto;
    padding: 0 15px;
}

#crowdsourcing .landing-page-main .content-wrapper h1 {
}

#crowdsourcing .landing-page-main .content-wrapper p {
    letter-spacing: -0.02em;
    line-height: 36px;
    font-weight: var(--font-light);
    max-width: 65%;
    margin: 1rem auto 0;
    text-align: center; /* statt center */
    display: block;   /* wichtig für konsistente Breite */

}

#crowdsourcing .landing-page-main .start-now-button {
    font-family: IBM Plex Sans Condensed, sans-serif;
    font-size: 2.4rem !important;
    font-weight: var(--font-regular);
    line-height: inherit;
    letter-spacing: normal;
    text-decoration: none;
    margin-top: 24px;
}


#crowdsourcing .landing-page-main .info-box-wrapper .row>div {
    padding-left: calc(var(--bs-gutter-x) * 0.3) !important;
    padding-right: calc(var(--bs-gutter-x) * 0.3) !important;
}

#crowdsourcing .landing-page-main .info-box {
    background-color: white;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

#crowdsourcing .landing-page-main .info-box:focus {
    transform: translateY(-3px);
}


#crowdsourcing .landing-page-main .info-box::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    bottom: 16px;     /* Abstand vom unteren Rand */
    right: 16px;      /* Abstand vom rechten Rand */
    background-image: url('../Icons/link-arrow.svg');
    background-repeat: no-repeat;
    background-size: contain;
    aria-hidden: true;
}


#crowdsourcing .landing-page-main .info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#crowdsourcing .landing-page-main .info-box h3 {
    font-family: IBM Plex Sans Condensed, sans-serif;
    font-size: 2.0rem;
    font-weight: var(--font-semibold);
    letter-spacing: normal;
    margin-bottom: 0.5rem;
}

#crowdsourcing .info-box-modal ul {
    padding-left: 16px;
}

#crowdsourcing .info-box-modal li {
    list-style: disc !important;
}

#crowdsourcing .process-list-container .search-section {
    padding-top: 16px;

}

#crowdsourcing .process-list-container .facets-section {
}

#crowdsourcing .process-list-container .process-list-section .btn {
    font-size: 1.6rem !important;
}

#searchInput {
    background-color: white;
    border: 2px solid var(--color-background);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.process-list-container .searchButtons a {
    margin: 0;
    padding: 0;
    background-color: transparent;
    text-decoration: none;
}

.process-list-container .process-list-filter-btn,
.process-list-container .process-list-sort-btn {
    display: none;
}

.process-list-container .searchButtons a img {
    margin-top: 8px;
    margin-left: 8px;
}

.process-list-container .link-with-icon:hover img {
    transform: scale(1.2);
}

.process-list-container .process-list-section ul {
    padding: 1rem;
}

.process-list-container .process-list-section li {
    padding: 0.3rem;
}

.process-list-container .process-list-section .card-body {
    padding: 0.5rem;
}

.process-list-container .process-list-section .card-image {
    padding: 0.5rem;
}

.process-list-container .process-list-section .card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top;
    display: block;
    max-height: 100%;
}

.process-list-container .process-list-section .card-image {
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#crowdsourcing .process-list-container {
    width: 100%;
    padding-right: var(--bs-gutter-x,.75rem);
    padding-left: var(--bs-gutter-x,.75rem);
    margin-right: auto;
    margin-left: auto;
    margin-top: 16px;
    background-color: white;
}

#crowdsourcing .dashboard-section {
    background-color: #fff;
    padding: 1.5rem;
    /* margin-bottom: 1.5rem; */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);

    font-family: IBM Plex Sans, sans-serif;
    font-weight: var(--font-light);
    font-size: 1.8rem;
    line-height: 24px;

}

#crowdsourcing .dashboard-info {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 12px;
    padding-bottom: 12px;
}

#crowdsourcing .dashboard-info a {
    text-decoration: unset;
    font-family: IBM Plex Sans Condensed, sans-serif;
    font-weight: var(--font-semibold);
    font-size: 16px;
}

#crowdsourcing .dashboard-section h1 {
    font-family: IBM Plex Sans Condensed, sans-serif;
    font-weight: var(--font-semibold);
    font-size: 40px;
}

#crowdsourcing .dashboard-section h2 {
    font-family: IBM Plex Sans Condensed, sans-serif;
    font-weight: var(--font-semibold);
    font-size: 24px;
}

#crowdsourcing .dashboard-info .multi-column {
    column-count: 2;
    column-gap: 20px;
}


#crowdsourcing .dashboard .personal-count {
    color: var(--color-btn-primary);
    font-weight: var(--font-semibold);
    font-size: 24px;
}

.chart-badge-total {
    color: white;
    background-color: #495057;
}
.chart-badge-new {
    color: #212529;
    background-color: var(--chart-color-new);
}

.chart-badge-correction {
    color: #212529;
    background-color: var(--chart-color-correction);
}

.chart-badge-final-correction {
    color: #212529;
    background-color: var(--chart-color-final-correction);
}

.chart-badge-completed {
    color: #212529;
    background-color: var(--chart-color-completed);
}


.dashboard-user-processes .action-box {
        background-color: var(--color-btn-primary);
        aspect-ratio: 1;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
}

.dashboard-user-processes a {
    text-decoration: none !important;
}

.dashboard-user-processes .action-box:focus {
    transform: translateY(-3px);
}

.dashboard-user-processes .action-box::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    bottom: 16px;     /* Abstand vom unteren Rand */
    right: 16px;      /* Abstand vom rechten Rand */
    background-image: url('../Icons/link-arrow-white.svg');
    background-repeat: no-repeat;
    background-size: contain;
    aria-hidden: true;
    fill: white;
}

.dashboard-user-processes .action-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.dashboard-user-processes .action-box h3 {
    font-family: IBM Plex Sans Condensed, sans-serif;
    font-size: 16px;
    font-weight: var(--font-semibold);
    color: white;
    letter-spacing: normal;
    margin-bottom: 0.5rem;
}

.dashboard-user-processes .action-box.disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}


.dashboard-info .toggle-arrow {
    position: relative;
    padding-right: 20px;
    cursor: pointer;
    color: inherit;
    display: inline-flex;            /* inline + flex for alignment */
    align-items: center;             /* vertically center text and arrow */
    gap: 4px;                       /* small gap between text and arrow */
}

.dashboard-info .toggle-arrow::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../Icons/arrow-down.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: background-image 0.3s ease;
}

.dashboard-info .toggle-arrow[aria-expanded="true"]::after {
    background-image: url('../Icons/arrow-up.svg');
}

.dashboard-info .col-2-text {
    display: grid;
    grid-template-areas: "a a";
    grid-gap:20px;
}


/* Modals */

#crowdsourcing .modal-backdrop.show,
#crowdsourcing-login .modal-backdrop.show {
    opacity: 0.7;
}

.form-control,
#registerModal input,
#loginModal input,
#crowdsourcing .btn,
#crowdsourcing-login .btn {
    border-radius: 0;
    font-size: 1.8rem !important;
}

.form-control {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.modal-body ul  {
    padding-left: 0;
}

.modal-body ul li {
    list-style: none !important;
}

#registerModal .modal-header,
#registerModal .modal-footer,
#loginModal .modal-header,
#loginModal .modal-footer {
    border: none;
}

#crowdsourcing .modal-content,
#crowdsourcing .modal-header,
#crowdsourcing .modal-footer,
#crowdsourcing-login .modal-content,
#crowdsourcing-login .modal-header,
#crowdsourcing-login .modal-footer,
#registerModal .modal-content,
#registerModal .modal-header,
#registerModal .modal-footer {
    border-radius: 0;
}

#crowdsourcing-login .login-help {
    margin-top: 10px;
}

#sfrForm #bargraph,
#registerModal #bargraph {
    display: none;
}

#sfrForm .form-check,
#registerModal .form-check {
    padding-left: 0;
}

#registerModal .error {
    color: red;
    font-size: 12px;
}

#registerModal .formerrors {
   display: none;
}

#sfrForm .errorMessage,
#sfrForm .formerrors {
    color: red;
    font-size: 1.2rem;
}

#registerModal .col-md-6 {
    width: 100%;
}

#sfrForm .form-check,
#registerModal .modal-body .form-check {
    display: block;
}

#sfrForm .custom-checkbox,
#registerModal .modal-body .custom-checkbox {
    display: flex;
    align-items: flex-start;
}

#registerModal .modal-body .custom-control-input {
    margin-top: 0.45rem;
    margin-right: 0.5rem;
}

#registerModal .modal-body #sfrForm .custom-control-label {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.2;
    padding-left: 0.3rem;
}

#sfrForm .custom-control-label {
    margin-top: -0.45rem;
    margin-bottom: 0;
    line-height: 1.2;
    padding-left: 1rem;
}

#registerModal .modal-body {
    margin-bottom: 0;
    line-height: 1.2;
}


#registerModal form {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#registerModal .register-help {
    margin-top: 10px;
}


.tx-srfreecap-pi1-cant-read {
    width: auto;
}

.tx-srfreecap-pi1-cant-read a:hover {
    color: var(--modal-link-hover) !important;
    text-decoration: underline !important;
}

.tx-srfreecap-pi1-cant-read a {
    color: var(--modal-link) !important;
}

.tx-srfreecap-pi1-image {
    display: block;
    margin: 10px 0 10px 0 !important;
}


#crowdsourcing .modal.fade .modal-dialog,
#registerModal .modal-dialog,
#crowdsourcing-login .modal.fade .modal-dialog {
    transform: translate(0, 100%);
    transition: transform 0.3s ease-out;
}

#crowdsourcing .modal.show .modal-dialog,
#registerModal .modal-dialog,
#crowdsourcing-login .modal.show .modal-dialog {
    transform: translate(0, 0);
}

#crowdsourcing #info-box-details .modal-header {
    border-bottom: none;
}

/* User setting area */
.user-profile-container {
    width: 500px;
    margin: 0 auto;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0;
}

.user-profile-container #sfrForm .form-row .col-md-6 {
    width: 100% !important;
}

.user-profile-container .btn-primary {
    background-color: #5c636a !important;
    border-color: #5c636a !important;
}


/* status */
.status-bar {
    border-bottom: 1px solid #FFF;
    padding: 10px 0px;
    display: flex;
    align-items: flex-start;
}

.status-bar .breadcrumb-item::before {
    display: none !important;
}

.status-bar .breadcrumb-item:not(:last-child)::after {
    margin: 0 .5rem;
    color: var(--bs-breadcrumb-divider-color, #6c757d);
}

.status-bar .breadcrumb-item {
    white-space: nowrap;
    border: 1px solid #6c757d;
    font-size: 0.75em;
    border-radius: 50rem;
    padding: 0.35em 0.8em;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.editor-label {
    color: #6c757d !important;
}

.toggle-show-more.collapsed .show-less-text {
    display: none;
}

.toggle-show-more:not(.collapsed) .show-more-text {
    display: none;
}

.state-badge {
    display: inline-block;
    padding: 0.35em 0.8em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem;
    text-decoration: none;
    margin-right: 0.5rem;
}

.badge-done {
    background-color: #fff;
    color: #198754;
    border: 1px solid #198754;
}

.badge-active {
    background-color: #0d6efd;
    color: #fff;
    border: 1px solid #0d6efd;
}

.badge-inactive {
    background-color: #fff;
    color: #adb5bd;
    border: 1px solid #dee2e6;
}

/* Metadata form */

#nav-tabContent {
    background: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: #000;
    border-color: #fff;
}

.nav-link {
    color: #000000;
}

.nav-link:focus,
.nav-link:hover {
    color: #6c757d;
}


button.tab-error::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    margin-left: 6px;
}

.form-error {
    border: 1px solid red;
}

.carousel-image {
    object-fit: cover;
    width: 100%;
}

ul.facets {
    list-style: none;
    padding-left: 0;
}

ul.facets li a {
    text-decoration: none;
    color: #000;
}

ul.facets li a:hover {
    text-decoration: underline;
    color: #0a53be;
}

.pagination .page-item .page-link {
    color: #000 !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--color-btn-primary);
    border-color: var(--color-btn-primary);
    color: white !important;
}

.pagination .page-item .page-link:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white !important;
}


.processForm .edit-submit-btn {
    margin-bottom: 10px;
}

.form-nav {
  background-color: var(--color-background);
}

@media (max-width: 1076px) {
    #crowdsourcing .info-box-wrapper .col-md-4 {
        width: 33%;
    }
}

@media (max-width: 991px) {
    #crowdsourcing .info-box-wrapper {
        max-width: 100%;
    }

    .main-nav .gap-4 {
        gap: 1.5rem !important;
    }
}


@media (min-width: 768px) {
    #sfrForm .col-md-6 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .user-profile-container {
        max-width: 100%;
    }

    #crowdsourcing .dashboard-info .multi-column {
        column-count: 1;
        column-gap: 0px;
    }
}

@media (max-width: 540px) {
    #crowdsourcing .info-box-wrapper .col-md-4 {
        width: 50%;
    }
}

@media (max-width: 320px) {
    #crowdsourcing .info-box-wrapper .col-md-4 {
        width: 100%;
    }
}
