/* **************************************************************** */
/* ***** Kompatibilität mit verschiedenen Browsern herstellen ***** */
/* **************************************************************** */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;

}

/* ************************************************** */
/* ***** Design für die statischen Textelemente ***** */
/* ************************************************** */

.classHeadline {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.contactLabel {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
    cursor: pointer;
}

.contactAGBLabel {
    font-size: 16px;
    cursor: pointer;
}

/* **************************************** */
/* ***** Design für die Inputelemente ***** */
/* **************************************** */

.contactSelect,
.contactInputText,
.contactEMail,
.contactInputTel,
.contactTextarea {
    display: block;
    width: 100%;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

.editInputText {
    width: 50%;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

.editInputTextarea {
    width: 100%;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

.custom-file-upload {
    display: inline-block;
    background: darkgrey;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    width: 200px;
    transition: background 0.3s ease;
}

.custom-file-upload:hover {
    background: grey;
}

.contactAttachment {
    display: none !important;
}

/* ********************************************* */
/* ***** Row-Design für das Template Nr. 2 ***** */
/* ********************************************* */

.containerContactForm {
    display: flex;
}

.containerContactForm div {
    flex: 1;
    flex-basis: 0;
    margin: 0;
    padding: 0;
}

.contactSelectNr2,
.contactInputTextNr2,
.contactEMailNr2,
.contactInputTelNr2,
.contactTextareaNr2 {
    display: inline-block;
    width: calc(100% - 10px);
    padding: 5px;
    margin-bottom: 20px;
    margin-right: 10px;
    border: 1px solid #ccc;
}

.contactAGBLabelNr2 {
    font-size: 16px;
    margin-left: 10px;
    width: calc(100% - 10px);
}

/* *********************************************** */
/* ***** Design für den Submit- & Backbutton ***** */
/* *********************************************** */

.contactSubmit {
    display: inline-block;
    padding: 6px 12px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    float: right !important;
    width: 125px;
    transition: background 0.3s ease;
}

.contactBack {
    display: inline-block;
    padding: 6px 12px;
    margin-top: 20px;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    width: 150px;
    transition: background 0.3s ease;
}

#backToContactForm {
    display: inline-block;
    padding: 6px 12px;
    margin-top: 20px;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    align: center;
    width: 300px !important;
    transition: background 0.3s ease;
}

.backToContactContainer{
    display: flex;
    align-items: center;
    justify-content: center;
}

.contactBack:hover {
    background-color: darkgrey;
    transition: background-color 0.6s ease;
}

.contactSubmitContainer {
    text-align: right;
}

.dataEdit {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dataSave {
    margin-left: 10px;
    display: inline-block;
    padding: 5px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* ********************************************************************************************** */
/* ***** Notwendige CSS-Config damit die Honeypot Felder für Normalos nicht ausfüllbar sind ***** */
/* ********************************************************************************************** */

.honey{
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    tab-index: -1;
}

/* ******************************************************************************* */
/* ***** Design für Server- und Browserseitigen Fehler- und Successmeldungen ***** */
/* ******************************************************************************* */

.kc-alert {
    padding: 20px;
    background-color: #ff574d;
    color: white;
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 15px;
    z-index: 999;
    max-width: 300px;
}

.kc-successAlert {
    padding: 20px;
    background-color: #4CAF50;
    color: white;
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 15px;
    z-index: 999;
    max-width: 300px;
}

.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    margin-top: -16px;
    margin-right: -12px;
    cursor: pointer;
    transition: 0.3s;
}

.closebtn:hover {
    color: black;
}

/* ******************************************* */
/* ***** Design für das Quiz als Captcha ***** */
/* ******************************************* */

.quizContainer {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 1rem;
}

.quizAnswer {
    display: block;
    width: 100%;
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
}

.quizTitle {
    color: #333;
    font-size: 14px;
    letter-spacing: 0.1rem;
    margin-left: 15px;
}

/* ************************* */
/* ***** Media Queries ***** */
/* ************************* */

@media only screen and (max-width: 767px) {
    .custom-file-upload, .contactSubmit, .contactBack, #backToContactForm {
        width: 100%;
        border-radius: 0px;
    }

    .kc-alert {
        padding: 20px;
        background-color: #ff574d;
        color: white;
        margin-bottom: 15px;
        position: relative;
        max-width: 100%;
    }

    .kc-successAlert {
        padding: 20px;
        background-color: #4CAF50;
        color: white;
        margin-bottom: 15px;
        position: relative;
        max-width: 100%;
    }

    .closebtn {
        margin-left: 15px;
        color: white;
        font-weight: bold;
        float: right;
        font-size: 22px;
        line-height: 20px;
        cursor: pointer;
        transition: 0.3s;
    }
}
