@media screen and (orientation: portrait) {
    #obsah-kontakty {
        height: auto;
        background-color: antiquewhite;
        overflow: auto;
        border-top: black solid;
        padding: 5vh 5vw;
        text-align: center;
    }
    #obsah-kontakty div {
        width: 100%; /* roztažení přes celý displej */
        margin: 0 auto;
    }
    #obsah-kontakty h1 {
        font-size: 6vh; /* menší nadpis */
        margin-top: 5vh;
        margin-bottom: 3vh;
    }
    #obsah-kontakty p {
        font-size: 2.5vh;
        line-height: 1.4;
        margin: 2vh 0;
    }
    #obsah-kontakty label {
        font-size: 2vh;
        display: block;
        text-align: left;
        margin: 3vh 5vw 1vh 5vw;
    }
    input[type="text"],
    textarea {
        width: 90%;
        padding: 1.5vh 2vh;
        font-size: 2.3vh;
        border: 1px solid #ccc;
        border-radius: 20px;
        margin-bottom: 2vh;
    }
    textarea {
        resize: vertical;
        min-height: 15vh;
    }
    #obsah-kontakty button {
        font-size: 2.3vh;
        background-color: black;
        color: floralwhite;
        border-radius: 50px;
        padding: 2vh 5vh;
        text-align: center;
        margin-top: 3vh;
        margin-bottom: 5vh;
    }
}
@media screen and (orientation: landscape) {
    #obsah-kontakty {
        height: auto;
        background-color: antiquewhite;
        overflow: auto;
        border-top: black solid;
    }
    #obsah-kontakty div {
        width: 50%;
    }
    #obsah-kontakty div h1 {
        font-size: 10vh;
        margin-left: 10%;
        margin-top: 10%;
    }
    #obsah-kontakty div p {
        font-size: 4vh;
        margin-left: 10%;
        margin-top: 2%;
    }
    #obsah-kontakty div div {
        margin: 10vh 10%;
    }
    #obsah-kontakty label {
        font-size: 2vh;
        display: block;
        margin-top: 5%;
        margin-left: 10%;
    }
    input[type="text"] {
        padding: 1vh 2vh;
        font-size: 2.5vh;
        border: 1px solid #ccc;
        border-radius: 30px;
        width: 60vh;
        margin-top: 0.5vh;
        margin-left: 10%;
    }
    textarea {
        width: 60vh;
        padding: 1vh 2vh;
        font-size: 2.5vh;
        border: 1px solid #ccc;
        border-radius: 10px;
        resize: vertical;
        margin-left: 10%;
    }
    #obsah-kontakty button {
        font-size: 2.5vh;
        background-color: black;
        color: floralwhite;
        border-radius: 50px;
        padding: 2vh;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        margin-top: 3vh;
        margin-left: 10%;
        margin-bottom: 5vh;
    }
}