@charset "UTF-8";

body {
    font-family: "Times New Roman", "serif";
    margin: 0;
    padding: 0;
}

hr {
    opacity: .7;
}

form {
    background: white;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 20px auto;
    max-width: 600px;
    height: auto;
}

.formalia {
    padding: 0 20px 20px 20px;
}

form .columnCounter {
    width: calc(50% - 10px);
    padding-bottom: 10px;
    display: block;
    float: left;
}

form .columnCounter.right {
    margin-left: 20px;
}

label {
    margin-top: 10px;
    display: inline-block;
    color: #2F2F2F;
    letter-spacing: 1.5px;
    font-size: 12px;
    font-family: "Trebuchet MS", sans-serif;
}

input,
value {
    color: #585858
}

input,
select {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 0;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #2962ff;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reset {
    border: none;
    transition: 0.3s;
    text-transform: none;
    letter-spacing: 1px;
    color: grey;
}

#result1 p,
#result2 p {
    font-size: 38px;
    line-height: 44px;
    font-weight: bold;
    margin-top: 0;
    padding: 0 20px 0 0;
    margin: 0;
    color: #2962ff;
}

/* Tab Leisten Stil */
.tab {
    overflow: hidden;
    background-color: #ddd;
    display: flex;
}

/* Stil der Tab-Buttons */
.tab button {
    background-color: #ddd;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 16px;
    transition: 0.3s;
    text-transform: none;
    letter-spacing: 1px;
    color: grey;
}

/* Ändert die Hintergrundfarbe der Buttons beim Überfahren */
.tab button:hover,
.reset:hover {
    background-color: #ccc;
    color: #2A2A2A
}

/* Stil des aktiven Tabs */
.tab button.active {
    background-color: white;
    color: #2962ff;
    border-bottom-color: white;
}

/* Tab-Inhaltscontainer */
.tabcontent {
    display: none;
    padding: 6px 20px 0 20px;
    border: none;
}

@media (max-width: 768px) {
    form {
        max-width: 100%;
    }

    .formalia {
        padding: 0 10px 10px 10px;
    }

    .columnCounter {
        width: 100%;
        margin-left: 0;
    }

    .tab button {
        padding: 10px 8px;
    }

    #result1 p,
    #result2 p {
        font-size: 28px;
        line-height: 30px;
    }
}