#bg_container.rechtliches_seite {
    box-sizing: border-box;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 6vh 12px 8vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    background-position: 53% center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.rechtliches_karte {
    transform: none;
    box-sizing: border-box;
    width: min(820px, calc(100% - 12px));
    min-width: 0;
    max-height: 82vh;
    max-height: 82dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--akzentfarbe3) transparent;
    margin: 0;
    padding: 18px clamp(18px, 5vw, 58px) 28px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(22, 34, 54, 0.16);
}

.rechtliches_karte::-webkit-scrollbar {
    width: 5px;
    background-color: transparent;
}

.rechtliches_karte::-webkit-scrollbar-track {
    background: transparent;
}

.rechtliches_karte::-webkit-scrollbar-thumb {
    background-color: var(--akzentfarbe3);
    border: 0;
    border-radius: 10px;
}

.rechtliches_karte::-webkit-scrollbar-button {
    display: none;
}

/* Der globale Zierrahmen ragt normalerweise einige Pixel ueber die Box hinaus.
   Bei einer scrollbaren Karte wuerde allein dieser Ueberstand bereits eine
   Scrollbar mit einem minimalen Scrollweg erzeugen. */
.rechtliches_karte::before {
    inset: 0;
}

.rechtliches_karte .logo {
    top: 10px;
    right: 10px;
}

.rechtliches_karte h1 {
    margin: 8px 68px 18px 0;
    text-align: left;
}

.rechtliches_karte h2 {
    margin: 34px 0 18px;
    padding-bottom: 7px;
    color: var(--akzentfarbe2);
    border-bottom: 1px solid var(--akzentfarbeMainBox);
}

.rechtliches_karte h3 {
    margin: 24px 0 7px;
    font-size: 1.05rem;
}

.rechtliches_karte p,
.rechtliches_karte li,
.rechtliches_karte address {
    line-height: 1.55;
}

.rechtliches_karte li {
    font-size: 14px;
}

.rechtliches_karte address {
    font-style: normal;
}

.rechtliches_karte ul {
    margin: 8px 0 16px;
    padding-left: 24px;
}

.rechtliches_stand {
    margin-top: 28px;
    color: #555;
    font-size: 0.9rem;
}

.rechtliches_zurueck {
    margin: 34px 0 4px;
    text-align: center;
}

@media screen and (max-width: 600px) {
    #bg_container.rechtliches_seite {
        padding: 2vh 4px 6vh;
        background-attachment: scroll;
    }

    .rechtliches_karte {
        width: calc(100% - 4px);
        max-height: 88vh;
        max-height: 88dvh;
        padding: 12px 16px 22px;
    }

    .rechtliches_karte h1 {
        margin-right: 52px;
        font-size: 1.45rem;
    }

    .rechtliches_karte h2 {
        font-size: 1.3rem;
    }

    .rechtliches_karte li {
        font-size: 12px;
    }
}
