
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

body {
    color: #8d8d8e;
    font-family: 'Roboto', sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#main {
    padding: 20px;
}

label {
    font-size: 16px;
    font-weight: 500;
}

/* Formular-Grid */
#form1 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px 20px;
}

/* Fieldset auflösen */
#form1 fieldset {
    display: contents !important;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

/* Formularfelder */
#form1 .form-element {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
}

/* Beschriftungen */
.form-label {
    margin-top: 15px;
    display: block;
    color: #102c38;
}

/* Eingabefelder */
#form1 .text-input,
#form1 textarea,
#form1 select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ddd !important;
    padding: 14px;
}

/* Checkbox-Gruppe volle Breite */
#form1 .form-element:has(#checkbox-group) {
    grid-column: 1 / -1;
}

/* Nachrichtenfeld volle Breite */
#form1 .form-element:has(textarea) {
    grid-column: 1 / -1;
}

#form1 textarea {
    min-height: 150px;
}

/* Captcha */
#pnl_captcha {
    grid-column: 1 / -1;
    margin-top: 0;
}

/* Datenschutz */
#pnl_policy {
    grid-column: 1 / -1;
    padding: 10px 0 0 0;
}

#pnl_policy a {
    color: #0e3e66;
}

/* Absenden */
#form1 .submit {
    grid-column: 1 / -1;
    background: #d99a37;
    color: #fff;
    text-align: center;
    border-bottom: 0;
    padding: 14px;
    font-size: 16px;
    text-transform: uppercase;
    border: 10px;
    font-weight: 500;
}

#form1 .submit:hover {
    background: none;
    border: 2px solid #0e3e66;
    color: #0e3e66;
}

/* Bestehende Flex-Elemente */
.flex-container {
    display: flex;
    justify-content: space-between;
}

.flex-container .form-element {
    width: 32%;
}

.secure {
    background-color: #08394d;
}

/* Responsive */
@media (max-width: 768px) {

    html,
    body,
    #main {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #main {
        padding: 15px;
    }

    #form1 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 12px;
        box-sizing: border-box;
    }

    #form1 .form-element,
    #form1 .text-input,
    #form1 textarea,
    #form1 select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    #form1 .form-element:has(#checkbox-group),
    #form1 .form-element:has(textarea),
    #pnl_captcha,
    #pnl_policy,
    #form1 .submit {
        grid-column: 1 / -1;
    }

    .flex-container {
        width: 100%;
        max-width: 100%;
        gap: 12px;
    }

    .flex-container .form-element {
        width: 100%;
        min-width: 0;
    }
}

/* Nur schmale Smartphones */
@media (max-width: 480px) {

    #main {
        padding: 10px;
    }

    #form1 {
        grid-template-columns: minmax(0, 1fr);
    }

    #form1 .form-element:has(#checkbox-group),
    #form1 .form-element:has(textarea),
    #pnl_captcha,
    #pnl_policy,
    #form1 .submit {
        grid-column: 1;
    }

    .flex-container {
        flex-direction: column;
    }

    label {
        font-size: 14px;
    }

    #form1 .text-input,
    #form1 textarea,
    #form1 select {
        padding: 11px;
    }
}