.gf-modal-body p:first-child {
    margin-top: 0;
}
.gf-modal-body p:last-child {
    margin-bottom: 0;
}
.gf-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--abstand-4);
    margin: 0 0 var(--abstand-3);
}
.gf-modal-title {
    margin: 0;
    font-size: var(--schrift-4);
    color: var(--text);
    word-break: break-word;
}
.gf-modal-body {
    flex: 0 1 auto;
    min-height: 0;
    overflow: auto;
    color: var(--text);
}
.gf-modal[id^="legal-overlay-"] { width: min(40rem, 92vw); max-width: min(40rem, 92vw); }
.gf-modal[id^="legal-overlay-"] .gf-modal-title { hyphens: auto; word-break: normal; }
@media (max-width: 540px) {
.gf-modal[id^="legal-overlay-"] { width: calc(100vw - 1rem); max-width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
}
.gf-modal.einstufung-ausw-modal { width: min(96vw, 64rem); max-width: min(96vw, 64rem); max-height: 90dvh; }
