.termin-image-button {
    display: inline-flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.8rem 0 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 0.8rem;
}
.termin-image-button img {
    width: 160px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}
.termin-image-button:focus-visible,
.termin-dialog button:focus-visible,
.termin-dialog a:focus-visible {
    outline: 3px solid #c4623a;
    outline-offset: 4px;
}
.termin-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    padding: 0;
    width: min(900px, calc(100% - 2rem));
    max-height: 90vh;
    max-height: 90dvh;
    border: 1px solid #706963;
    border-radius: 8px;
    overflow-y: auto;
    background: #24211f;
    color: #fff;
}
.termin-dialog::backdrop {
    background: rgb(0 0 0 / 75%);
}
.termin-dialog-body {
    position: relative;
    isolation: isolate;
    min-height: 65vh;
}
.termin-dialog-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.termin-dialog-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 75%);
    z-index: -1;
}
.termin-dialog-content {
    padding: 5rem clamp(1.25rem, 5vw, 4rem) 3rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
.termin-dialog-content h3 {
    margin: 1.25rem 0;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}
.termin-dialog-content :is(h3, time, span, a) {
    color: #fff;
}
.termin-dialog-content a {
    text-decoration: underline;
}
.termin-dialog-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #fff;
    border-radius: 4px;
    background: #24211f;
    color: #fff;
    cursor: pointer;
    font: inherit;
}
html.termin-dialog-open {
    overflow: hidden;
}
.termin-preview-image {
    display: block;
    max-width: 100%;
    max-height: 400px;
    margin: 1rem 0;
    object-fit: contain;
}
