@font-face {
    font-family: "Keroine";
    src: url("fonts/KeroinePRO-DouxExtreme.woff") format("woff");
    /* font-weight: 400; */
    /* font-style: normal; */
}
@font-face {
    font-family: "Suisse";
    src: url("fonts/SuisseIntl-Regular.woff2") format("woff2");
    /* font-weight: 400; */
    /* font-style: normal; */
}

@font-face {
    font-family: "Suisse Italic";
    src: url("fonts/SuisseIntl-RegularIt.woff2") format("woff2");
    /* font-weight: 400; */
    /* font-style: normal; */
}
* {
    box-sizing: border-box;
}
html,
body {
    margin: 0;
    height: 100%;
    overflow-anchor: none;
    overflow: hidden auto;
    overscroll-behavior: none;
}
body {
    font-family: "Suisse";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
#mapShell {
    visibility: visible;
}
body.no-map #mapShell {
    visibility: hidden;
    pointer-events: none;
}

::selection {
    background-color: #c27b0033;
}

i,
em,
.italic,
strong {
    font-family: "Suisse Italic";
    font-style: normal;
    font-weight: normal;
}

.font-xxxs {
    font-size: 12px;
    line-height: 1.5;
}
.font-xxs {
    font-size: 14px;
    line-height: 1.5;
}
.font-xs {
    font-size: 15px;
    line-height: 1.5;
}
.font-s {
    font-size: 20px;
    line-height: 1.2;
}
.font-m {
    font-size: 22px;
    line-height: 1.2;
}
.font-l {
    font-size: 25px;
    line-height: 1.2;
}
.font-xl {
    font-size: 25px;
    line-height: 1.1;
}
.font-xxl {
    font-size: 30px;
    line-height: 1.1;
}
.font-xxxl {
    font-size: 30px;
    line-height: 1.1;
}
@media (min-width: 744px) {
    .font-xl {
        font-size: 30px;
    }
    .font-xxl {
        font-size: 40px;
    }
    .font-xxxl {
        font-size: 40px;
    }
}
@media (min-width: 1024px) {
    .font-xs {
        font-size: 16px;
    }
    .font-s {
        font-size: 22px;
    }
    .font-m {
        font-size: 25px;
    }
    .font-l {
        font-size: 35px;
    }
    .font-xl {
        font-size: 45px;
    }
    .font-xxl {
        font-size: 45px;
    }
    .font-xxxl {
        font-size: 60px;
    }
}
@media (min-width: 1512px) {
    .font-xxs {
        font-size: 15px;
    }
    .font-xs {
        font-size: 18px;
    }
    .font-s {
        font-size: 24px;
    }
    .font-m {
        font-size: 35px;
    }
    .font-l {
        font-size: 50px;
    }
    .font-xl {
        font-size: 60px;
    }
    .font-xxl {
        font-size: 70px;
    }
    .font-xxxl {
        font-size: 90px;
    }
}
.defaultPadding {
    padding: 15px 15px;
}
.smallPadding {
    padding: 10px 15px;
}
.articlePadding {
    padding: 15px 15px 45px;
}
.defaultMargin {
    margin: 15px 15px;
}
@media (min-width: 744px) {
    .defaultPadding,
    .smallPadding {
        padding: 15px 20px;
    }
    .defaultMargin {
        margin: 15px 20px;
    }

    .articlePadding {
        padding: 20px 25px 80px;
    }
}
@media (min-width: 1024px) {
    .defaultPadding,
    .smallPadding {
        padding: 20px 25px;
    }
    .defaultMargin {
        margin: 20px 25px;
    }
}
p {
    margin-top: 0;
}
a {
    color: black;
    text-decoration: none;
}
img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}
.keroine {
    font-family: "Keroine";
}

#header {
    position: fixed;
    overflow-anchor: none;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    width: 100vw;
    height: 50px;
    align-items: center;
    border-bottom: 1px solid black;
    padding: 0 15px;
    background-color: white;
    z-index: 3;
    gap: 7px;
}
@media (min-width: 744px) {
    #header {
        padding: 0 20px;
        height: 65px;
    }
}
@media (min-width: 1024px) {
    #header {
        padding: 0 25px;
    }
}
#content {
    padding-top: 50px;
    /* min-height: calc(100vh - 99px); */
    min-height: calc(100vh - 40px);
    min-height: calc(100dvh - 40px);
    position: relative;
}
@media (min-width: 744px) {
    #content {
        padding-top: 65px;
        min-height: calc(100vh - 51px);
        min-height: calc(100dvh - 51px);
    }
}
@media (min-width: 1024px) {
    #content {
        min-height: calc(100vh - 63px);
        min-height: calc(100dvh - 63px);
    }
}
#placeOverlay,
#startOverlay,
#placeContainer,
#personsContainer,
#overlayClose {
}
#menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    position: fixed;
    right: -100%;
    top: 0;
    width: 75vw;
    background-color: #eae8e4;
    border-left: 1px solid black;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 2;
    /* opacity: 0; */
    transition: right 0.5s;
}
@media (min-width: 744px) {
    #menu {
        gap: 25px;
        width: calc(50vw + 1px);
    }
}
#menu.visible {
    right: 0;
    /* opacity: 1; */
}
#menuTop {
    display: flex;
    gap: 20px;
    align-items: center;
}
a.menuItem {
    text-decoration: none;
    color: black;
    text-align: right;
}
a.menuItem.active,
a.menuItem:hover {
    text-decoration: underline;
    text-underline-offset: 15%;
    text-decoration-thickness: 4%;
}
#pageTitle {
    line-height: 1;
}
#pageName {
    text-align: center;
    opacity: 1;
    transition: opacity 0.25s;
    line-height: 1;
}
#pageName.hidden {
    opacity: 0;
}
#menuButton {
    /* background-color: #eae8e4; */
    font-family: "Suisse";
    cursor: pointer;
    color: black;
}
#menuButtonSpacer {
    width: 21ch;
    text-align: right;
}
#closeButton {
    background-color: #eae8e4;
    border: 1px solid black;
    border-radius: 999px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    display: flex;
}
#langForm {
    display: flex;
}
#langForm button {
    cursor: pointer;
    border: none;
    background-color: #eae8e4;
    color: black;
}
#langForm button:hover {
    background-color: transparent;
}
.underline {
    text-decoration: underline;
    text-underline-offset: 10%;
    text-decoration-thickness: from-font;
}
#footer {
    width: 100vw;
    display: flex;
    border-top: 1px solid black;
    justify-content: space-between;
    padding-left: 0;
    padding-right: 0;
    align-items: center;
    flex-direction: row;
    gap: 25px;
}
@media (min-width: 744px) {
    #footer {
    }
}
#footer > div {
}
#footer > div:first-child {
    display: flex;
    gap: 25px;
}
#footer > div:nth-child(2) {
}

#mapShell {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50px;
    height: calc(100vh - 90px);
    height: calc(100dvh - 90px);
}
@media (min-width: 744px) {
    #mapShell {
        height: calc(100vh - 116px);
        height: calc(100dvh - 116px);
        top: 65px;
    }
}
@media (min-width: 1024px) {
    #mapShell {
        height: calc(100vh - 128px);
        height: calc(100dvh - 128px);
    }
}
#placesMap {
    width: 100%;
    height: 100%;
}

#mapControls {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: calc(100% - 100px);
    opacity: 0;
}
@media (min-width: 1024px) {
    #mapControls {
        left: unset;
        right: 20px;
        bottom: 20px;
    }
}
#actionButtons {
    display: flex;
    gap: 10px;
}
@media (min-width: 1024px) {
    #actionButtons {
        justify-content: end;
    }
}
#zoomControls,
#infoButton {
    height: 45px;
    border: 1px solid black;
    background: white;
    border-radius: 999px;
    align-items: center;
    gap: 20px;
}
#zoomControls {
    justify-content: center;
    padding: 0 20px;
    display: none;
}
@media (min-width: 1024px) {
    #zoomControls {
        display: flex;
    }
}
#infoButton {
    width: 45px;
    cursor: pointer;
    justify-content: center;
    display: flex;
}
#zoomPlus,
#zoomMinus {
    cursor: pointer;
}

.plus-icon {
    display: block;
    width: 20px;
    height: 20px;
    background: #000;
    /* clip-path: polygon( 46% 0%, 54% 0%, 54% 46%, 100% 46%, 100% 54%, 54% 54%, 54% 100%, 46% 100%, 46% 54%, 0% 54%, 0% 46%, 46% 46% ); */
    clip-path: polygon(
        47.5% 0%,
        52.5% 0%,
        52.5% 47.5%,
        100% 47.5%,
        100% 52.5%,
        52.5% 52.5%,
        52.5% 100%,
        47.5% 100%,
        47.5% 52.5%,
        0% 52.5%,
        0% 47.5%,
        47.5% 47.5%
    );
}

.minus-icon {
    display: block;
    width: 20px;
    height: 20px;
    background: #000;
    /* clip-path: polygon(0% 46%, 100% 46%, 100% 54%, 0% 54%); */
    clip-path: polygon(0% 47.5%, 100% 47.5%, 100% 52.5%, 0% 52.5%);
}
#legend {
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    background: white;
    border-radius: 28px;
    padding: 15px;
    align-items: start;
    justify-content: start;
    gap: 5px;
}
#legend > div {
    display: flex;
    gap: 10px;
    align-items: center;
}
#legend .circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid black;
    flex-shrink: 0;
}
#legend .circle.one {
    /* background-color: #afa78a; */
    background-color: #d4cec6;
}
#legend .circle.two {
    background-color: #e0e7ff;
}

.timeline-wrapper {
    background: white;
    position: absolute;
    right: 15px;
    top: 78px;
    border: 1px solid black;
    border-radius: 999px;
    transition: box-shadow 0.5s;
    z-index: 2;
    opacity: 0;
}
.shadow {
    box-shadow: 0 0 15px 15px #decf97;
}

@media (min-width: 744px) {
    .timeline-wrapper {
        top: 90px;
        right: 20px;
    }
}
@media (min-width: 1024px) {
    .timeline-wrapper {
        right: unset;
        top: unset;
        left: 20px;
        bottom: 20px;
        height: 46px;
    }
}
#timelineValueWrapper {
    display: grid;
    grid-template-rows: repeat(13, 1fr);
    grid-template-columns: auto;
    gap: 18px;
    justify-items: center;
    align-items: center;
    padding: 16px 5px;
    width: 45px;
    height: auto;
}
@media (min-width: 1024px) {
    #timelineValueWrapper {
        grid-template-columns: repeat(13, 1fr);
        grid-template-rows: auto;
        height: 100%;
        padding: 4px 10px 0;
        gap: 9px;
        height: 40px;
        width: auto;
    }
}
.timelineValue {
}

/* Range */
input[type="range"] {
    touch-action: none;
}
.timeline-range {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: calc(100% - 20px);
    margin: 10px 0;
    z-index: 1;

    /* optional: optisch ausblenden */
    opacity: 0;
    cursor: pointer;
    writing-mode: vertical-lr;
}
.timeline-range::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    height: 40px;
}

.audio-progress::-moz-range-track {
    height: 40px;
}

.timeline-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;

    box-shadow: 0 0 0 15px transparent;
    background-clip: content-box, padding-box;
}
.timeline-range::-moz-range-thumb {
    box-shadow: 0 0 0 15px transparent;
    background-clip: content-box, padding-box;
    width: 40px;
    height: 40px;
}
@media (min-width: 1024px) {
    .timeline-range {
        writing-mode: horizontal-tb;
        width: calc(100% - 20px);
        height: 100%;
        margin: 0 10px;
    }
}
#timelineMarkerWrapper {
    position: absolute;
    top: 2px;
    left: 0px;
    padding: 0 10px;
    width: 100%;
    height: 100%;
}

/* Marker */
.timeline-marker {
    position: absolute;
    top: 2px;
    left: 3px;
    height: 40px;
    width: 40px;
    /* border: 1px solid black; */
    border-radius: 999px;
    /* background-color: rgba(38, 72, 189, 0.14); */
    /* background-color: #4b425e33; */
    background-color: #c27b0033;

    transition: transform 0.5s ease;
    pointer-events: none;
}
@media (min-width: 1024px) {
    .timeline-marker {
        top: 0px;
    }
}
#personDetail {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "personHead"
        "personImage"
        "personAudio"
        "personMap"
        "personText"
        "detailRelations"
        "supportBanner";
}
@media (min-width: 744px) {
    #personDetail {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto 1fr auto;
        grid-template-areas:
            "personHead personHead"
            "personAudio personMap"
            "personText personMap"
            "detailRelations detailRelations"
            "supportBanner supportBanner";
    }
}
#personDetail > * {
    /* border-bottom: 1px solid black; */
    /* border-right: 1px solid black; */
}
#personDetail > *:last-child {
    border-bottom: none;
}
#personHead {
    grid-area: personHead;
    min-height: 20vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "personName"
        "personInfo";
    border-bottom: 1px solid black;
    grid-template-rows: auto 1fr;
    gap: 25px;
}
@media (min-width: 744px) {
    #personHead {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "personName personHeadImage"
            "personInfo personHeadImage";
    }
}
#personName {
    grid-area: personName;
}
#personInfo {
    grid-area: personInfo;
}
#personHeadImage {
    display: block;
}
#personImageContainer {
    grid-area: personImage;
    border-bottom: 1px solid black;
    display: flex;
    justify-content: flex-end;
}
#personImageContainer img {
    position: relative;
    display: block;
    max-width: 100%;
}
@media (min-width: 744px) {
    #personImageContainer {
        display: none;
    }
}
.personImageWrapper {
    position: relative;
}
.personImageWrapper.head {
    grid-area: personHeadImage;
    justify-self: end;
    display: none;
}

@media (min-width: 744px) {
    .personImageWrapper.head {
        display: block;
    }
}
#personCredit,
#articleCredit {
    color: white;
    position: absolute;
    right: 0;
    bottom: 6px;
    transform-origin: bottom right;
    transform: rotate(-90deg) translateX(100%);
}

#personAudio {
    scroll-margin-top: 50px; /* Höhe deines fixed Headers */
    grid-area: personAudio;
    align-self: start;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
}
@media (min-width: 744px) {
    #personAudio {
        scroll-margin-top: 65px; /* Höhe deines fixed Headers */
    }
}
#personText {
    grid-area: personText;
}
@media (min-width: 744px) {
    #personText {
        border-right: 1px solid black;
    }
}
#personMap {
    min-height: 50vh;
    position: relative;
    scroll-margin-top: 65px; /* Höhe deines fixed Headers */
    border-bottom: 1px solid black;
    /* margin-bottom: -2px; */
    opacity: 0;
    transition: opacity 0.5s;
    height: 100%;
}
@media (min-width: 744px) {
    #personMap {
        border: none;
        min-height: calc(100vh - 65px);
        min-height: calc(100dvh - 65px);
    }
}
.playBtn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.playBtn:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}
.icon {
    width: 50px;
    height: 50px;
    background: #000;
    /* transition: clip-path 0.32s ease; */

    /* Pause-Symbol (zwei Balken) als 12-Punkte-Polygon.
       Zwischen den Balken liegt bei y=50% eine "Brücke"
       mit Breite 0, damit es EIN zusammenhängendes Polygon
       bleibt (nötig, damit die Transition funktioniert). */

    clip-path: polygon(
        35% 30%,
        70% 50%,
        70% 50%,
        70% 50%,
        70% 50%,
        70% 50%,
        70% 50%,
        70% 50%,
        70% 50%,
        70% 50%,
        70% 50%,
        35% 70%
    );
}

/* Play-Symbol (Dreieck) ebenfalls als 12-Punkte-Polygon.
     Die meisten Punkte laufen in der Dreieckspitze zusammen,
     nur die beiden äußeren Eckpunkte bleiben "verankert" –
     dadurch entsteht die morphende Bewegung. */
.playBtn.is-playing .icon {
    clip-path: polygon(
        35% 30%,
        45% 30%,
        45% 50%,
        55% 50%,
        55% 30%,
        65% 30%,
        65% 70%,
        55% 70%,
        55% 50%,
        45% 50%,
        45% 70%,
        35% 70%
    );
}

.audio-progress-wrapper {
    position: relative;
    isolation: isolate;
    width: 100%;
    height: 20px;
    display: flex;
    align-items: center;
}

/* .audio-progress-wrapper::before, */
/* .audio-progress-wrapper::after { */
/*     content: ""; */
/*     position: absolute; */
/*     width: 10px; */
/*     height: 10px; */
/*     border-radius: 50%; */
/*     top: 50%; */
/*     transform: translateY(-50%); */
/*     pointer-events: none; */
/*     z-index: 1;  */
/* } */
/**/
/* .audio-progress-wrapper::before { */
/*     left: 0; */
/*     background: #000; */
/*     z-index: 3; */
/* } */
/**/
/* .audio-progress-wrapper::after { */
/*     right: 0; */
/*     background: #e6e1d8;  */
/* } */
/* .audio-progress-wrapper.at-end::after { */
/*     background: #000; */
/* } */
/**/
.audio-progress {
    position: relative;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 20px; /* Klickbereich, nicht die sichtbare Höhe */
    background: transparent;
    cursor: pointer;
    margin: 0;

    /* gefüllter Anteil links (schwarz), Rest rechts (hellgrau) */
    --progress: 0%;
}

/* ===== Track ===== */
.audio-progress::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(
        to right,
        #000 0%,
        #000 var(--progress),
        #e6e1d8 var(--progress),
        #e6e1d8 100%
    );
}

.audio-progress::-moz-range-track {
    height: 2px;
    border-radius: 1px;
    background: #e6e1d8;
}

.audio-progress::-moz-range-progress {
    height: 2px;
    border-radius: 1px;
    background: #000;
}

/* ===== Thumb (der Punkt) ===== */
.audio-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: black;
    margin-top: -4px; /* zentriert auf 2px-Track */
    transition: background 0.15s ease;
    z-index: 2;
    box-shadow: 0 0 0 15px transparent;
    background-clip: content-box, padding-box;
}

.audio-progress::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: black;
    z-index: 2;
    box-shadow: 0 0 0 15px transparent;
    background-clip: content-box, padding-box;
}

#mapPlayBtn {
    position: absolute;
    left: 20px;
    top: 20px;
}
#personMapContainer {
    grid-area: personMap;
    position: relative;
}

#personPlaces {
    grid-area: personPlaces;
    border-bottom: 1px solid black;
}
.player {
    width: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#playButtonContainer {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}
#playButtonGroup {
    display: flex;
    gap: 20px;
    align-items: center;
    max-width: calc(100% - 80px);
}
#muteButton,
#unmuteButton {
    display: none;
    cursor: pointer;
    height: 50px;
    width: 50px;
}

.timeline-container {
    position: relative;
    margin-top: 20px;
}

#timeline {
    width: 100%;
}

.pointMarker {
    position: relative;
    width: 19px;
    height: 19px;
    opacity: 0;
}

.pointMarker .point {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background-color: black;
}

.pointMarker .label {
    position: absolute;
    left: 29px; /* 19px Punktbreite + 10px Gap */
    /* top: 50%; */
    white-space: nowrap;
    font-family: "Suisse";
    line-height: 1.2;
}

.markers {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.marker {
    position: absolute;
    width: 6px;
    height: 6px;
    background: grey;
    border-radius: 50%;
    transform: translate(9px, -50%);
}
.textMarker {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: grey;
    border-radius: 50%;
}
.myMarker[data-slug="hamburg"] .custom-marker,
.myMarker[data-slug="dresden"] .custom-marker,
.myMarker[data-slug="bayreuth"] .custom-marker,
.myMarker[data-slug="stuttgart"] .custom-marker,
.myMarker[data-slug="darmstadt"] .custom-marker,
.myMarker[data-slug="berlin"] .custom-marker {
    /* background-color: #afa78a; */
    background-color: #d4cec6;
}
.custom-marker {
    background-color: rgba(224, 231, 255, 1);
    border: 1px solid black;
    border-radius: 8px;
    padding: 8px 10px 2px;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    /* box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); */
    transform-origin: bottom center;
    /* transition: */
    /* transform 0.15s ease, */
    /* opacity 0.2s ease; */
    white-space: nowrap;
    font-family: "Suisse";
    pointer-events: all;
}
.notPlace-marker {
    font-family: "Suisse";
    display: none;
}

.custom-marker:hover {
    z-index: 10;
}

.marker-name {
}

.marker-count {
}
/* Vollständiger Marker */
.custom-marker .marker-name,
.custom-marker .marker-count {
    display: block;
}

.zoom-low .notPlace-marker {
    display: none;
}
.zoom-high .notPlace-marker {
    display: block;
}
/* Mittlere Zoomstufe: nur Count */
.zoom-medium .custom-marker .marker-name,
.zoom-medium .notPlace-marker {
    display: none;
}

/* Niedrige Zoomstufe: nur Punkt */
.zoom-low .custom-marker {
    --size: calc(16px + 10px * sqrt(var(--count)));
    border-radius: 50%;
    padding: 0;
    width: var(--size);
    height: var(--size);
}
.zoom-low .custom-marker:hover {
    width: unset;
    height: unset;
    border-radius: 8px;
    padding: 5px 10px;
}
.zoom-low .custom-marker {
}
.zoom-low .myMarker[data-count="0"],
.zoom-medium .myMarker[data-count="0"] {
    display: none !important;
}
.zoom-high .myMarker[data-count="0"] .custom-marker {
    background-color: unset;
    border: none;
    padding: 0;
}
.zoom-high .myMarker[data-count="0"] .custom-marker .marker-count {
    display: none;
}

.zoom-low .custom-marker .marker-name,
.zoom-low .custom-marker .marker-count {
    display: none;
}

.custom-marker:hover .marker-name,
.custom-marker:hover .marker-count {
    display: block;
}
#placesOverlay {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 50px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    z-index: 1;
    grid-template-areas:
        "placeContainer"
        "personsContainer";
    height: calc(100% - 50px);
    margin-top: -1px;
}
@media (min-width: 744px) {
    #placesOverlay {
        top: 65px;
        height: calc(100% - 65px);
    }
}

@media (min-width: 1024px) {
    #placesOverlay {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        grid-template-rows: 1fr auto;
        grid-template-areas:
            "placeContainer personsContainer"
            "placeContainer personsContainer";
    }
}
@media (min-width: 1024px) {
    #placesOverlay > #personsContainer {
        border-top: none;
        border-left: 1px solid black;
    }
}
#placesOverlay > #placeContainer {
    grid-area: placeContainer;
    pointer-events: all;
    /* transform: translateX(-100%); */
    /* opacity: 0; */
    display: flex;
    flex-direction: column;
}
@media (min-width: 1024px) {
    #placesOverlay > #placeContainer {
        /* transform: translateX(-100%); */
        /* opacity: 0; */
    }
}
#placesOverlay > #personsContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-area: personsContainer;
    pointer-events: all;
    /* transform: translateX(-100%); */
    gap: 25px;
    background-color: white;
    border-top: 1px solid black;
    overflow: auto;
}
@media (min-width: 1024px) {
    #placesOverlay > #personsContainer {
        /* transform: translateX(100%); */
        /* opacity: 0; */
    }
}
#placesOverlay > #placeContainer.isVisible,
#overlayClose.isVisible,
#accordeonButton.isVisible,
#placesOverlay > #personsContainer.isVisible {
    transform: translateX(0);
    opacity: 1;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

#placesOverlay > #placeContainer.isLeaving {
    opacity: 0;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
    transform: translateX(-100%);
}
@media (min-width: 1024px) {
    #placesOverlay > #placeContainer.isLeaving {
        transform: translateX(-100%);
    }
}
#placesOverlay > #personsContainer.isLeaving {
    transform: translateX(-100%);
    opacity: 0;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}
@media (min-width: 1024px) {
    #overlayClose.isLeaving,
    #accordeonButton.isVisible,
    #placesOverlay > #personsContainer.isLeaving {
        transform: translateX(100%);
        opacity: 0;
        transition:
            transform 0.35s ease,
            opacity 0.35s ease;
    }
}

#accordeonBody {
    display: grid;
    grid-template-rows: 0fr; /* collapsed */
    transition: grid-template-rows 0.35s ease;
    width: calc(100% - 60px);
}
@media (min-width: 1024px) {
    #accordeonBody {
        grid-template-rows: 1fr; /* expanded */
        width: 70%;
    }
}
#accordeonBody.open {
    grid-template-rows: 1fr; /* expanded */
}
#accordeonBodyInner {
    overflow: hidden;
}
#accordeonSpacer {
    padding-top: 25px;
}

#overlayClose,
#accordeonButton {
    position: absolute;
    right: 15px;
    top: 60px;
    border: 1px solid black;
    border-radius: 999px;
    cursor: pointer;
    background-color: white;

    border-radius: 999px;
    cursor: pointer;
    display: flex;
    background-color: white;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    /* transform: translateX(100%); */
    /* opacity: 0; */
    z-index: 2;
}

#accordeonButton {
    right: 60px;
}
@media (min-width: 744px) {
    #overlayClose,
    #accordeonButton {
        top: 80px;
    }
    #overlayClose {
        right: 20px;
    }
    #accordeonButton {
        right: 65px;
    }
}
@media (min-width: 1024px) {
    #accordeonButton {
        display: none;
    }
    #overlayClose,
    #accordeonButton {
        top: 91px;
        right: 26px;
    }
}
#overlayPersonTop {
    display: flex;
    /* justify-content: space-between; */
    width: calc(100% - 62px);
    gap: 20px;
    margin-top: 2px;
}
#overlayCounter {
    border: 1px solid black;
    border-radius: 8px;
    padding: 4px 14px 4px;
    background-color: rgba(224, 231, 255, 1);
}

#overlayCounter[data-slug="hamburg"],
#overlayCounter[data-slug="dresden"],
#overlayCounter[data-slug="bayreuth"],
#overlayCounter[data-slug="stuttgart"],
#overlayCounter[data-slug="darmstadt"],
#overlayCounter[data-slug="berlin"] {
    background-color: #d4cec6;
}
@media (min-width: 1024px) {
    #overlayCounter {
        display: none;
    }
}

#overlayYear {
    border: 1px solid black;
    padding: 4px 14px 4px;
    border-radius: 999px;
    display: block;
    width: 77px;
}
@media (min-width: 1024px) {
    #overlayYear {
        display: inline;
        width: auto;
    }
}
#overlayImage {
    display: none;
}
@media (min-height: 800px) {
    #overlayImage {
        display: block;
        max-height: 20vh;
        margin-bottom: 25px;
    }
}
#personsGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0 75px;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    overflow-y: auto;
}
.personGridLinkElement {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b3b3b3;
    height: 50px;
}
.personGridLinkElement:hover {
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.4);
    text-underline-offset: 15%;
    text-decoration-thickness: from-font;
}
.personGridLinkElement.active:hover {
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 1);
    text-underline-offset: 15%;
    text-decoration-thickness: from-font;
}
.personGridLinkElement.active {
    color: black;
}
.personGridLinkElement:not(.active) img {
    filter: grayscale(1);
    opacity: 0.4;
}
a.personName {
    color: inherit;
    text-decoration: none;
}

#alphabetGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 75px;
}
#alphabetTitle,
#articleListTitle,
#eventListTitle {
    padding-bottom: 100px;
    border-bottom: 1px solid black;
}
.alphabetGrouper {
    color: #b3b3b3;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}
.alphabetElement {
    display: flex;
    flex-direction: column;
}
.alphabetSpacer {
    width: 50px;
}
.alphabetLinkElement {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
}
.alphabetElement a:hover {
    text-decoration: underline;
    text-underline-offset: 15%;
    text-decoration-thickness: from-font;
}
.alphabetGridThumb,
.personGridThumb {
    border-radius: 50%;
    transform: scale(0.75);
    /* transition: transform 0.25s; */
}
/* .alphabetLinkElement:hover .alphabetGridThumb, */
/* .personGridLinkElement:hover .personGridThumb { */
/* transform: scale(1); */
/* } */
#placesDetail {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
        "placesDetailTitle"
        "placesDetailText"
        "placesDetailFootnotes"
        "detailRelations"
        "supportBanner";
}

@media (min-width: 744px) {
    #placesDetail,
    #articleDetail {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto;
        grid-template-areas:
            "placesDetailTitle placesDetailText"
            "placesDetailFootnotes placesDetailText"
            "detailRelations detailRelations"
            "supportBanner supportBanner";
    }
}
#placesDetailText > p,
.articleDetailText > p {
    margin: 0;
}
#placesDetailText {
    grid-area: placesDetailText;
}
#placesDetailFootnotes {
    grid-area: placesDetailFootnotes;
    border-right: 1px solid black;
    align-self: end;
}
#placesDetailTitle {
    grid-area: placesDetailTitle;
    min-height: 20vh;
    border-bottom: 1px solid black;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}
@media (min-width: 744px) {
    #placesDetailTitle {
        border-right: 1px solid black;
        border-bottom: none;
    }
}

#articleDetail {
    display: flex;
    flex-direction: column;
}

#articleHead {
    min-height: 20vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "articleHeadTitle"
        "articleHeadImage";
    border-bottom: 1px solid black;
}
@media (min-width: 744px) {
    #articleHead {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "articleHeadTitle articleHeadImage"
            ". articleHeadImage";
    }
}
#articleHeadTitle {
    grid-area: articleHeadTitle;
}
#articleImageWrapper {
    grid-area: articleHeadImage;
    justify-self: end;
    position: relative;
    max-width: 100%;
}
#articleHeadImage {
    max-width: 100%;
    display: block;
}
.articleParagraph {
    border-bottom: 1px solid black;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    grid-template-areas:
        "articleDetailParagraphTitle"
        "articleDetailText"
        "articleDetailFootnotes"
        "articleDetailImages";
}
@media (min-width: 744px) {
    .articleParagraph {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "articleDetailParagraphTitle articleDetailText"
            "articleDetailImages articleDetailText"
            "articleDetailFootnotes articleDetailText";
    }
}
.articleDetailParagraphTitle {
    grid-area: articleDetailParagraphTitle;
}
@media (min-width: 744px) {
    .articleDetailParagraphTitle {
        position: sticky;
        top: 85px;
    }
}
.articleDetailText {
    grid-area: articleDetailText;
}
.articleDetailImages {
    display: flex;
    flex-direction: column;
    grid-area: articleDetailImages;
    gap: 30px;
}
.articleDetailImageCreditContainer {
    position: relative;
}
@media (min-width: 744px) {
    .articleDetailImageGridContainer {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        grid-template-rows: auto;
    }
    .articleDetailImageGridContainer:nth-child(3n + 1)
        > .articleDetailImageContainer.landscape {
        grid-column-start: 3;
        grid-column-end: end;
    }
    .articleDetailImageGridContainer:nth-child(3n + 1)
        > .articleDetailImageContainer.portrait {
        grid-column-start: 3;
        grid-column-end: 4;
    }

    .articleDetailImageGridContainer:nth-child(3n + 2)
        > .articleDetailImageContainer.landscape {
        grid-column-start: 2;
        grid-column-end: 4;
    }
    .articleDetailImageGridContainer:nth-child(3n + 2)
        > .articleDetailImageContainer.portrait {
        grid-column-start: 2;
        grid-column-end: 3;
    }
    .articleDetailImageGridContainer:nth-child(3n)
        > .articleDetailImageContainer.landscape {
        grid-column-start: 1;
        grid-column-end: 3;
    }
    .articleDetailImageGridContainer:nth-child(3n)
        > .articleDetailImageContainer.portrait {
        grid-column-start: 1;
        grid-column-end: 2;
    }
}

.articleDetailImageContainer img {
    width: 100%;
    display: block;
}

.articleDetailFootnotes {
    grid-area: articleDetailFootnotes;
}

#placesMap {
    opacity: 0;
    transition: opacity 0.5s;
}
.myMarker {
    display: none;
    pointer-events: none;
}

#supportBanner {
    background-color: #eae8e4;
    display: flex;
    padding-top: 50px;
    padding-bottom: 50px;
    grid-area: supportBanner;
    flex-direction: column;
    gap: 40px;
}
@media (min-width: 744px) {
    #supportBanner {
        flex-direction: row;
    }
}
#supportBanner > #supportText {
    flex-basis: 50%;
}
#supportBanner > #supportLinkContainer {
    flex-basis: 50%;
    display: flex;
}
@media (min-width: 744px) {
    #supportBanner > #supportLinkContainer {
        justify-content: center;
        align-self: center;
    }
}
.roundLink {
    background-color: white;
    padding: 4px 15px 3px;
    border: 1px solid black;
    border-radius: 20px;
}
.roundLink.overlay {
    background-color: unset;
}
#detailRelations {
    grid-area: detailRelations;
    display: flex;
    border-bottom: 1px solid black;
    border-top: 1px solid black;
    flex-direction: column;
    padding-bottom: 75px;
    gap: 20px;
}
@media (min-width: 744px) {
    #detailRelations {
        flex-direction: row;
    }
}
#detailRelations > #relationsTitle {
    flex-basis: 50%;
}
#detailRelations > #relationsList {
    flex-basis: 50%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px 25px;
}
#detailRelations > #relationsList > a {
    text-decoration: underline;
    text-underline-offset: 15%;
    text-decoration-thickness: from-font;
}
.footnotes > dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 10px;
}
.footnotes dd {
    margin-left: 0;
}
.footnotes p {
    margin-bottom: 0;
}
#startOverlayWrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 2;
}
#startOverlay {
    position: relative; /* Positionierung übernimmt jetzt der Wrapper */
    background-color: white;
    border: 1px solid black;
    border-radius: 40px;
    height: min(600px, calc(100vh - 290px));
    height: min(600px, calc(100dvh - 290px));
    width: min(calc(100vw - 40px), 1500px);
    overflow: hidden;
}
@media (min-width: 1024px) {
    #startOverlay {
        height: min(600px, calc(100vh - 266px));
        height: min(600px, calc(100dvh - 266px));
        width: min(calc(100vw - 80px), 1500px);
    }
}

#startOverlayInner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
        "overlayEvents"
        "overlayTitle"
        "overlayText";
    gap: 25px;
    height: 100%;
    min-height: 100%; /* verhindert, dass der Inhalt selbst schrumpft */
}
@media (min-width: 1024px) {
    #startOverlayInner {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "overlayEvents overlayText"
            "overlayTitle overlayText";
        grid-template-rows: 1fr 1fr;
        gap: 50px;
    }
}

#overlayEvents {
    grid-area: overlayEvents;
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-self: start;
    align-items: flex-start;
}
#overlayEvents a {
    color: black;
    text-decoration: none;
}
@media (min-width: 744px) {
    #overlayEvents a {
    }
}

#overlayTitle {
    grid-area: overlayTitle;
}
@media (min-width: 744px) {
    #overlayTitle {
        align-self: end;
    }
}
#overlayText {
    grid-area: overlayText;
    min-height: 0; /* überschreibt den Default "auto" */
    overflow-y: auto;
    /* -webkit-mask-image: linear-gradient( */
    /*     to bottom, */
    /*     transparent 0%, */
    /*     black 5%,  */
    /*     black 95%, */
    /*     transparent 100% */
    /* ); */
    /* mask-image: linear-gradient( */
    /*     to bottom, */
    /*     transparent 0%, */
    /*     black 5%, */
    /*     black 95%, */
    /*     transparent 100% */
    /* ); */
    /* padding: 5px 0; */
}

#startOverlayClose {
    position: absolute;
    right: -10px;
    top: -10px;
    border: 1px solid black;
    border-radius: 999px;
    cursor: pointer;
    display: none;
    background-color: white;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    z-index: 2;
}
@media (min-width: 1024px) {
    #startOverlayClose {
        right: -30px;
        top: -22px;
    }
}
.close-icon {
    display: block;
    width: 25px;
    height: 25px;
    background: #000;
    transform: rotate(45deg);
    clip-path: polygon(
        48% 0%,
        52% 0%,
        52% 48%,
        100% 48%,
        100% 52%,
        52% 52%,
        52% 100%,
        48% 100%,
        48% 52%,
        0% 52%,
        0% 48%,
        48% 48%
    );
}
.chevron-icon {
    display: block;
    width: 25px;
    height: 25px;
    background: #000;
    clip-path: polygon(15% 24%, 50% 66%, 89% 20%, 85% 30%, 50% 72%, 15% 30%);
}
#accordeonButton.reverse .chevron-icon {
    transform: rotate(180deg);
}

#eventList {
    display: flex;
    flex-direction: column;
}
.eventElement,
.articleElement {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid black;
}
.articleElement:last-child {
    border-bottom: none;
}
.articleElement:hover {
    background-color: #eae8e4bf;
}
@media (min-width: 744px) {
    .eventElement,
    .articleElement {
        grid-template-columns: 1fr auto;
    }
}
.eventElement.past {
    color: #999999;
    border-bottom: 1px solid #999999;
}
.eventElementText,
.articleElementText {
    display: flex;
    flex-direction: column;
}
.eventLink {
    justify-self: end;
    align-self: end;
    color: black;
    text-decoration: none;
}
#interim {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: 30px;
}
#interim img {
    max-width: 500px;
    width: 100%;
}
#contactForm {
    display: grid;
    grid-template-columns: 3fr 7fr;
    grid-template-rows: auto;
    gap: 10px;
}
#contactForm input,
#contactForm textarea {
    width: 100%;
    border-radius: 20px;
    background: rgba(234, 232, 228, 0.6);
    padding: 10px 20px;
    border: none;
    font-family: "Suisse";
    font-size: inherit;
}
#contactForm button {
    border: 1px solid black;
    background-color: white;
    padding: 10px 20px;
    border-radius: 20px;
    color: black;
    -webkit-appearance: none; /* native Button-Optik/Verhalten deaktivieren */
    appearance: none;
    font: inherit; /* nimmt auch font-size, line-height etc. mit */
    font-family: "Keroine"; /* oder explizit deine Wunschschrift */
    cursor: pointer;
}

#contactForm div:nth-child(2) {
    grid-column: span 2;
}
#contactForm div:nth-child(3) {
    grid-column: span 1;
}
#contactForm div:nth-child(4) {
    grid-column: span 1;
}
#contactForm div:nth-child(5) {
    grid-column: span 2;
}
#contactForm div:nth-child(6) {
    position: absolute;
    left: -9999px;
    top: -9999px;
}
#formContainer {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.contactContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
}
.contactText,
.aboutText {
    max-width: 728px;
    width: 100%;
    margin-bottom: 100px;
}
.contactText {
    display: flex;
    flex-direction: column;
    gap: 100px;
}
.contactText p {
    margin: 0;
}

.contactText a,
.aboutText a {
    text-decoration: underline;
}
#contactLogos {
    max-width: 728px;
    width: 100%;
    display: grid;
    /* grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); */
    grid-template-columns: auto;
    gap: 100px;
}
.logoContainer {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.logoText {
    min-height: 1.5em;
}
#contactLogos img {
    max-width: 100%;
    max-height: 100%;
}
#contactTitle {
    align-self: flex-start;
    margin-bottom: 100px;
}
.maplibregl-ctrl-bottom-right {
    z-index: 0 !important;
    visibility: inherit !important;
}
.maplibregl-ctrl-attrib.maplibregl-compact-show {
    visibility: inherit !important;
}
#copyright {
    font-size: 11px;
}

.scroll-box {
    overflow-y: auto;
    transition:
        -webkit-mask-image 0.2s,
        mask-image 0.2s; /* Weicher Übergang */

    /* Standard: Oben und unten aktiv */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 75px,
        black calc(100% - 75px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0px,
        black 75px,
        black calc(100% - 75px),
        transparent 100%
    );
    margin-top: -20px;
    margin-bottom: -20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Oben angekommen -> Oberen Fade entfernen */
.scroll-box.is-top {
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black calc(100% - 75px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black calc(100% - 75px),
        transparent 100%
    );
}

/* Unten angekommen -> Unteren Fade entfernen */
.scroll-box.is-end {
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 75px,
        black 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 75px,
        black 100%
    );
}

/* Komplett ohne Fades (falls der Text zu kurz ist und nicht scrollt) */
.scroll-box.no-fade {
    -webkit-mask-image: none;
    mask-image: none;
}
