@import url('https://fonts.googleapis.com/css2?family=Sevillana&display=swap');
@import "mobil.css";
@import "style.css";

:root{
    /* HEADER */
    --headerBackground: linear-gradient(to right, #ee00ff, #af22b9, #812c87);
    --headerFont: "Sevillana";
    --headerSpacing: 0.2rem;
    --headerColor: #000;

    /* BODY */
    --bodyBackground: #fff;
    --bodyColor: #fff;

    /* MAIN */
    --mainBack: #c6a7a7;
    --mainColor: #444;

    /* NAV */
    --navBack: #333;
    --navLink: #fff;
    --fa_barColor: #333;
    --fa_closeColor: #fff;
    --navLinkBack: #af22b9;
    --navHeader: #333;

    /* MAIN */
    --mainLinkColor: #af22b9;
    --mainLinkColorHover: #812c87;

    /* Social Media */
    --socialMediaBack: #000;
    --socialMediaLink: #af22b9;
    --socialMediaLinkHover: #812c87;

    /* Newsletter Box */
    --newsletterBox: #333;
    --newsletterInputBorder: #af22b9;
    --newsletterInputBorderHover: #812c87;
    --newsletterInputPlaceholder: #999;
    --newsletterInputColor: #999;

    /* FOOTER */
    --footerBack: #333;
    --footerLink: #fff;
    --footerLinkHover: #af22b9;
    --footerLinkActive: #af22b9;
    --copyrightColor: #999;

    /* MESSAGEBOX */
    --messageBack: rgba(0,0,0,0.7);
    --messageBoxBackground: #fff;
    --messageBoxColor: #333;

    /* BUTTONS */
    --button: #af22b9;
    --buttonColor: #fff;
    --buttonBackground: #812c87;
    --apButtonError: #ff0000;
    --apButtonSuccess: #008000;

    /* INPUTS */
    --inputBorder: #333;
    --inputHFBorder: #812c87;

    /* Tables */
    --tableBorder: #af22b9;
    --tableBorderHover: #812c87;


    --errorColor: #ff0000;
    --successColor: #008000;
    --hrColor: #9999;
    --pflicht: #999;
}

*{
    box-sizing: border-box;
}

body{
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--bodyBackground);
    color: var(--bodyColor);
}

/* Bilder */
img{
    -ms-touch-action: none;
    -moz-touch-action: none;
    -webkit-touch-action: none;
    touch-action: none;
}

/* BUTTONS */
button,
input[type="submit"]{
    transition: 0.3s linear;
    color: var(--buttonColor);
    border: none;
    border-radius: 0.2rem;
    outline: none;
    background: var(--button);
    padding: 0.5rem;
    cursor: pointer;
}
button:hover,
input[type="submit"]:hover{
    background: var(--buttonBackground);
}
.ap-button-error{
    background: var(--apButtonError);
}
.ap-button-success{
    background: var(--apButtonSuccess);
}

.button-list{
    display: flex;
    flex-direction: row;
}
.button-list > button{
    margin-right: 0.5rem;
}

/* Labels & Checkboxen */
input[type="checkbox"],
.label-checkbox{
    cursor: pointer;
}


/* FORM */
form{
    width: 50%;
}

#newsletter-form{
    width: 100%;
}
#newsletter-form input[type="text"]{
    border: 0.1rem solid var(--newsletterInputBorder);
    color: var(--newsletterInputColor);
    padding: 0.4rem;
    border-radius: 0.3rem;
    outline: none;
    width: 50%;
    background: transparent;
    transition: 0.2s linear;
    text-align: center;
}
#newsletter-form input[type="text"]:hover,
#newsletter-form input[type="text"]:focus{
    border-color: var(--newsletterInputBorderHover);
}
#newsletter-form input[type="text"]::placeholder{
    color: var(--newsletterInputPlaceholder);
}

/* SONSTIGES */
hr{
    border: 0.1rem solid var(--hrColor);
}

i.pflicht{
    color: var(--errorColor);
}

.textbox-middle{
    width: 100%;
    text-align: center;
    color: #999;
}

.text-error{
    color: var(--errorColor);
}
.text-success{
    color: var(--successColor);
}

/* TABELLEN */
table tr td{
    padding: 1rem;
}

/* INPUTS */
input[type="text"],
input[type="password"],
textarea{
    border: 0.1rem solid var(--inputBorder);
    padding: 0.4rem;
    border-radius: 0.3rem;
    outline: none;
    width: 100%;
    background: transparent;
    transition: 0.2s linear;
}
input[type="text"]::placeholder,
input[type="password"]::placeholder,
textarea::placeholder{
    color: #333;
}
input[type="text"]:hover,
input[type="password"]:hover,
textarea:hover{
    border-color: var(--inputHFBorder);
}
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus{
    border-color: var(--inputHFBorder);
}
textarea{
    resize: none;
}

/* Message Box */
#messageBack{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: var(--messageBack);
    z-index: 99;
    display: none;
}
#messageBox{
    position: fixed;
    top: 2%;
    left: 50%;
    width: 50%;
    background: var(--messageBoxBackground);
    color: var(--messageBoxColor);
    border-radius: 0.3rem;
    transform: translate(-50%);
    z-index: 100;
    display: none;
}
#messageBox > div{
    margin: 1rem;
}
#messageBox > div > #messageHeader{
    padding: 0.7rem;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
}
#messageBox > div > #messageBody{
    padding: 0.8rem;
    max-height: 80vh;
    overflow: scroll;
}
#messageBox > div > #messageBody > .messageError{
    color: var(--errorColor);
}
#messageBox > div > #messageBody > .messageSuccess{
    color: var(--successColor);
}
#messageBox > div > #messageBody > .messageError > .textCenter{
    width: 100%;
    text-align: center;
}
#messageBox > div > #messageBody > .messageSuccess > .textCenter{
    width: 100%;
    text-align: center;
}
#messageBox > div > #messageFooter{
    padding: 0.7rem;
    text-align: right;
}
#messageBox > div > #messageFooter > button{
    margin-right: 0.3rem;
}

/* Nav Bar */
.fa-bars{
    color: var(--fa_barColor);
    cursor: pointer;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.6rem;
    display: block;
    transition: 0.3s linear;
    z-index: 3;
}
.fa-bars.open{
    left: 17.5rem;
}
.fa-bars.open::before{
    content: '\f00d';
    color: var(--fa_closeColor);
}