@font-face {
    font-family: InterVariable;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("InterVariable.woff2?v=4.1") format("woff2");
}
@font-face {
    font-family: InterVariable;
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url("InterVariable-Italic.woff2?v=4.1") format("woff2");
}

:root {
    font-family: InterVariable, sans-serif;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.top-area {
    display: flex;
    margin-top: 36px;
    padding-bottom: 36px;
    margin-bottom: 18px;
}
.top-area > div {
    flex: 1 1 0;
}
.details {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
}
input:not([type="range"]),
select,
textarea {
    padding: 0.4rem 0.5rem;
    border: 1px solid #c4ccd8;
    border-radius: 3px;
    background-color: #fff;
    color: #333;
    font-size: 1rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
input:not([type="range"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1b53c0;
    box-shadow: 0 0 0 2px rgba(27, 83, 192, 0.15);
}
.details > * {
    padding: 18px;
    flex: 1 1 280px;
    background-color: #fff;
    border: 1px solid #e1e6f5;
    border-radius: 3px;
    margin: 0;
}
.details > :first-child {
    width: 50%;
    min-width: 320px;
    margin-right: 18px;
}
.details h4 {
    margin: 32px 0 6px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1b3f9b;
}

.facets {
    border: 1px solid rgb(52, 73, 154);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
}

.facets > h3 {
    margin: 0;
    background-color: rgb(52, 73, 154);
    color: #fff;
    padding: 6px 12px;
    font-size: 0.875rem;
}

.facets > .input-wrap {
    padding: 6px;
}

.facets > .input-wrap > input {
    width: 100%;
}

.facets > .topics_selection {
    padding-left: 6px;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
}

.details h4:first-child {
    margin-top: 0;
}
.details p {
    margin: 6px 0;
    text-wrap: wrap;
    color: #37416c;
    line-height: 1.7;
}
table ul {
    list-style: none;
    padding: 0;
}
.details ul {
    margin: 12px 0;
    padding-left: 18px;
    color: #37416c;
    line-height: 1.2;
    list-style: disc;
}
.details li + li {
    margin-top: 6px;
}
table {
    /*width: 100%;*/
    table-layout: fixed;
    text-align: left;
    border-collapse: collapse;
    --color: whitesmoke;
    font-size: 0.95rem;
}
td {
    border: 1px solid lightgrey;
    padding: 0.5rem 0.75rem;
}

th {
    background-color: rgb(52, 73, 154);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-left: 1px solid lightgray;
}
th:first-child {
    border-left: 1px solid rgb(52, 73, 154);
}
th:last-child {
    border-right: 1px solid rgb(52, 73, 154);
}
thead {
    /*border-block-end: 2px solid;*/
    /*position: sticky;*/
    top: 0;
    border-bottom: 2px solid;
}
tbody {
    border-block-end: 2px solid;
}
tbody tr:nth-child(4n + 1) {
    background: color-mix(in srgb, var(--color), transparent 60%);
}
.summary-row {
    cursor: pointer;
}
.details-row {
    background-color: #f1f8ff !important;
    text-align: left;
    padding: 15px;
}
.details-content {
    padding: 10px 15px;
    font-size: 0.95em;
    color: #333;
}
h1 > a {
    text-decoration: none;
}
h1 > a:visited,
h1 > a {
    color: #fff;
}
.top-nav-header {
    display: flex;
    flex-direction: row;
}
.top-nav-header img {
    /*aspect-ratio: 1;*/
    width: 250px;
    /*height: 100%;*/
    float: right;
    /*object-fit: cover;*/
    /*overflow: hidden;*/
}
.top-nav-header > div:first-child {
    min-width: 60%;
}
.top-nav-header > div {
    flex: 1 1 0;
}
.details-row.closed {
    display: none;
}
.h1-wrapper {
    display: inline-block;
    /*border-bottom: 1px solid white;*/
}
.top-nav > ul {
    display: flex;
    gap: 2rem;
    padding: 0;
    list-style: none;
    color: #fff;
}

table.main-table {
    width: 100%;
}

tr > th:first-child,
.summary-row > td:first-child {
    border-right: none;
}

tr > th:nth-child(2),
.summary-row > td:nth-child(2) {
    border-left: none;
}

.arrow-right {
    border-width: 5px 0 5px 5px;
    border-color: transparent transparent transparent black;
    width: 0;
    height: 0;
    display: inline-block;
    vertical-align: middle;
    border-style: solid;
}

span + span.arrow-right {
    margin-left: 9px;
}

.aufklapper {
    margin-top: 24px;
    margin-bottom: 0;
}

.selected-facets {
    display: flex;
    flex-direction: row;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

button {
    font-family: InterVariable, sans-serif;
}

.selected-facets > button {
    background-color: rgb(52, 73, 154);
    color: #fff;
    padding: 6px 12px;
    display: flex;
    border: none;
    border-radius: 3px;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
}

.overflow {
    overflow-y: scroll;
    max-height: 320px;
    min-height: 0;
    flex: 1 1 0;
}

.index {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.index > div {
    flex: 1 1 0;
}

.sort {
    margin-left: 12px;
}

.arrow-up {
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent white transparent;
    width: 0;
    height: 0;
    display: inline-block;
    vertical-align: middle;
    border-style: solid;
}

.rotate-90 {
    transform: rotate(90deg);
}

.rotate-180 {
    transform: rotate(180deg);
}

.uni-logo {
    border-bottom: 1px solid #fff;
    height: 50px;
}

.uni-logo > a > img {
    margin-left: -13px;
}
.page_content {
    flex: 1;
}
.hidden,
.row-hidden {
    display: none !important;
}

.top-nav a,
.top-nav a:visited {
    color: #fff;
    text-underline-offset: 3px;
    text-decoration-thickness: 3px;
    text-decoration: none;
    font-size: 1.25rem;
}
.top-nav a:hover {
    text-decoration: underline;
}
.wrapper {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}
.main_content {
    display: flex;
    align-items: flex-start;
    column-gap: 16px;
    flex-direction: row-reverse;
}

.topic-list > ul {
    padding: 0;
    list-style: none;
    width: 210px;
    margin: 0;
}
.param > select:first-child {
    width: 210px;
}

.facets {
    height: 300px;
}

.facets > input[type="text"] {
    width: 100%;
}

.facets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.facets > ul + ul {
    margin-top: 12px;
}
.facets li {
    font-size: 0.875rem;
    color: #000;
}
.facets > ul > li {
    padding: 0;
}
.facets > ul > li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.facets ul ul {
    padding-left: 14px;
    margin-top: 4px;
}
.logo {
    display: flex;
    align-items: center;
    justify-content: end;
}

.topic-list .facet-button {
    padding-left: 6px;
    padding-right: 6px;
    width: 100%;
}

.topic-list .facet-button:hover {
    text-decoration: underline;
}

.topic-list .facet-button.selected {
    padding-left: 6px;
    padding-right: 6px;
    background-color: rgb(52, 73, 154);
    color: #fff;
    border-radius: 3px;
}

.facets_more {
    padding: 0 12px;
    color: dimgrey;
    font-size: 0.75rem;
}

.author_row {
    width: 145px;
}

.digitized_version_row {
    width: 125px;
}

th:first-child {
    width: 30px;
}

th:nth-child(2) {
    width: 310px;
}

th:nth-child(8) {
    width: 90px;
    text-align: center;
}

td:nth-child(8) {
    text-align: center;
}

.screenreader {
    position: absolute !important; /* Outside the DOM flow */
    height: 1px;
    width: 1px; /* Nearly collapsed */
    overflow: hidden;
    clip: rect(1px 1px 1px 1px); /* IE 7+ only support clip without commas */
    clip: rect(1px, 1px, 1px, 1px); /* All other browsers */
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.index-closed > .facets > :not(:first-child) {
    display: none;
}

.index-closed > .facets {
    height: 33px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.nav-time {
    justify-content: space-between;
}

#no_year {
    margin-top: 0;
    margin-bottom: 0;
}

label[for="no_year"] {
    padding-top: 1px;
}

.button-sort {
    border: 0;
    background: none;
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.button-clear {
    border: 0;
    background: none;
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
    cursor: pointer;
}

.button-clear.facets_more {
    padding: 0 12px;
    color: dimgrey;
    font-size: 0.75rem;
}

.buttons-spaced {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    column-gap: 16px;
}

.facet-button {
    border: 0;
    background: none;
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
    cursor: pointer;
    display: flex;
    align-content: space-between;
    align-items: center;
    text-align: left;
    width: 100%;
    padding: 6px 12px;
}

.facet-button > span {
    flex: 1 1 0;
}

.letterhead_row {
    min-width: 260px;
}
table ul {
    margin: 0;
}
.selected-items > li > button,
#js-facet-persons-selected > li > button {
    background-color: rgb(52, 73, 154);
    cursor: pointer;
    color: white;
    padding: 6px 12px;
    margin-top: 2px;
    border-radius: 3px;
}

#js-facet-werke-selected > li > button::after,
#js-facet-persons-selected > li > button::after,
.selected-facets > button::after {
    width: 20px;
    height: 20px;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='20px' viewBox='0 -960 960 960' width='20px' fill='%23e3e3e3'%3E%3Cpath d='m291-240-51-51 189-189-189-189 51-51 189 189 189-189 51 51-189 189 189 189-51 51-189-189-189 189Z'/%3E%3C/svg%3E");
}

.selected-facets > button::after {
    margin-left: 6px;
}
.param {
    margin-bottom: 6px;
    display: flex;
    gap: 9px;
    padding-right: 36px;
}

.param > input {
    flex: 1 1 0;
}
.range-slider {
    height: 5px;
    position: relative;
    background-color: #e1e9f6;
    border-radius: 2px;
}
.range-selected {
    height: 100%;
    left: 0%;
    right: 0%;
    position: absolute;
    border-radius: 5px;
    background-color: #34499a;
}
.years {
    display: flex;
    align-items: center;
    column-gap: 12px;
}
.range {
    flex: 1 1 0;
}
.range-input {
    position: relative;
}
.range-input input {
    position: absolute;
    width: 100%;
    height: 5px;
    top: -7px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.range-input input::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 3px solid #34499a;
    background-color: #fff;
    pointer-events: auto;
    -webkit-appearance: none;
}
.range-input input::-moz-range-thumb {
    height: 15px;
    width: 15px;
    border-radius: 50%;
    border: 3px solid #34499a;
    background-color: #fff;
    pointer-events: auto;
    -moz-appearance: none;
}
ol > li > ol {
    list-style: lower-alpha;
}
.top-bg {
    background-color: rgb(52, 73, 154);
    color: #fff;
}

.footer {
    background-color: rgb(52, 73, 154);
    color: #fff;
    margin-top: 72px;
    padding: 18px 0;
    font-size: 0.875rem;
}

.footer a:visited {
    color: #fff;
}

.footer > .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.markdown {
    line-height: 1.4;
}

.markdown p {
    width: clamp(min(93.75vw, 50ch), 70vw, 75ch);
    font-size: 1.25rem;
}

.markdown > ol,
.markdown > ul {
    padding-left: 2ch;
}

.years {
    margin-bottom: 6px;
}

.btn {
    border: 0;
    background-color: rgb(52, 73, 154);
    color: white;
    padding: 6px 18px;
    font-size: inherit;
    font-family: inherit;
    border-radius: 3px;
    cursor: pointer;
}

table + table {
    margin-top: 36px;
}

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

.details-header > .letterhead {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    align-items: center;
}

.details-header > .letter-persons {
    display: flex;
    flex-direction: row;
    font-size: 1.5rem;
    column-gap: 1rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.letter-persons > p {
    margin: 0;
}

.details-header .direction-arrow {
    font-size: 2rem;
    margin-top: -0.75rem;
}

.delete-action {
    color: red;
}

.results_info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    border-bottom: 1px solid lightgrey;
}

#merkliste_dialog,
#dump_dialog {
    padding: 0;
    border: 0;
}

#merkliste_dialog > div,
#dump_dialog > div {
    width: 600px;
    max-width: 95%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: left;
}

#merkliste_dialog ul {
    max-height: 200px;
    overflow-y: scroll;
    padding-left: 15px;
}

#merkliste_dialog .buttons-spaced,
#dump_dialog .buttons-spaced {
    margin-top: 36px;
}

dialog:modal::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.with-underline {
    text-decoration: underline;
}

.export-buttons {
    display: flex;
    column-gap: 12px;
}

.export-buttons > button {
    width: 100px;
}

.loader {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-bottom-color: rgba(52, 73, 154, 0.8);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
