@media (orientation: portrait) {
    .impressum-section {
        grid-template-rows: 1% 15% 25% 1% 50% 8%;
    }

    .title-impressum-container {
        max-width: 100%;
        align-self: center;
        grid-area: 2 / 2 / 3 /6;
    }

    .text-impressum {
        font-size: 2cqh;
    }

    .info-impressum {
        grid-area: 3 / 2 / 4 / 6;
        grid-template-rows: 15% 15% 15% 10% 15% 15% 15%;
        grid-template-columns: auto;
    }

    .info-impressum div {
        font-size: var(--font-48-size);
    }

    #text-g,
    #text-o {
        grid-column: 1 / span 3;
        align-self: flex-start;
        font-size: 1.9cqh;
        text-align: center;
    }

    #text-g {
        grid-row: 1;
    }

    #text-o {
        grid-row: 5;
    }

    #raphgmail,
    #lenagmail,
    #country,
    #country-section {
        grid-column: 1 / span 3;
        justify-self: center;
        align-self: center;
        font-size: 1.8cqh;
    }

    #raphgmail {
        grid-row: 2;
    }

    #lenagmail {
        grid-row: 3;
    }

    #country {
        grid-row: 6;
    }

    #country-section {
        grid-row: 7;
    }

    .description-impressum {
        grid-area: 5 / 2 / 6 / 6;
    }

    .description-impressum div {
        text-align: center;
        font-size: 2cqh;
    }

    .bottom-impressum-container {
        grid-area: 6 / 2 / 7 / 6;
    }
}

@media (orientation: landscape) {
    @media (max-width: 640px) {
        .description-impressum div {
            font-size: 2.8cqh;
        }

        .info-impressum div {
            font-size: 2.8cqh;
        }

        .text-impressum {
            font-size: 3.5cqh;
        }
    }
}