/*
Theme Name: Ferrero 15
Theme URI: http://www.ferrero.at
Description: Template Ferrero 1.0
Author: Prof. Dr. Raphael Rossmann
Author URI: http://www.rossmann-freitag.de
*/

/*CSS Reset Eric Meyer*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}

/* content styles */
body { color: #57585a; font-size: 14px; font-family: Open Sans, Helvetica, Arial, sans-serif; margin: 0; position: relative; background: #fcf3d7;;
line-height: 1.5; -webkit-text-size-adjust: none; -webkit-font-smoothing: antialiased;  }
img {display: block; }
p { margin-bottom: 10px; line-height: 1.5; }
a { text-decoration:underline; color:#555; }
a:hover { color:#eb5c33; }
em { font-style: italic; }
strong { font-weight: bold; }

/* HEADER */
header { background: #fff; width: 100%; height:65px; }
    header > div { width: 1000px; height: 65px; margin:0 auto; position: relative; }
        header img { padding-top: 10px;}
        header ul { position: absolute; right:0px; bottom: 10px; padding: 0; margin: 0; height: auto;  }
        header ul li { display:inline; list-style-type: none; font-size: 14px; border-left: 1px solid #e0b400; padding: 0 10px; margin: 0;  }
        header ul li:first-child { border-left: none; padding: 0 10px 0 0; }
        header ul li strong { font-weight: 700; }
        header ul li a { text-decoration: none; color:#e0b400; }
        header ul li a:hover { color: #ba8411; }
    header .langswitch { position: absolute; bottom: 10px; right: 400px; font-size: 14px; font-weight: 700; color:#e0b400; text-decoration: none;  }
    
section#navi { background: #fcf3d7; font-size: 17px; }
    nav { width: 1000px; height: 30px; margin:0 auto; line-height: 30px; }
    nav a.mobilemenu { float: right; text-decoration: none; display: none; }
    nav ul { list-style-type: none; }
    nav > ul { display: inline; padding-left: 0px; }
     nav li a { text-decoration: none; padding: 3px 10px 3px 10px; color: #ba8411; text-transform: uppercase;  }
     nav li:hover a, nav li.current_page_item a { background: #ba8512; color:#fff; }
     nav > ul > li { display: inline; position: relative; }
     
     nav .drop { display: none; position: absolute; top: 20px; left:20px; z-index: 999; background: rgba(255, 255, 255, 1); line-height: 1;  }
     nav .drop ul { border-top: 2px solid #eb5c33; margin-top: 10px; list-style-type: none; padding-left: 0;  }
     nav .drop li a { display: block; padding: 12px 20px; font-size: 16px; white-space: nowrap; }
     
     nav li:hover .drop { display: block; }

section#visual { height:479px; background-position: center top; display: none; }
    .home section#visual { display: block; }

    .keymobile { display: none; }

section#content { width: 100%; position: relative; background: #fff; }
    .home section#content { display: none; }

section#logoleiste { height:45px; border-top: 3px solid #fcf3d7; border-bottom: none; background: #fff; }
    section#logoleiste > div { width: 1200px; margin: 0 auto; overflow: visible; text-align: center; }
    .home section#logoleiste { border-bottom: 3px solid #fcf3d7; border-top: none; }
    section#logoleiste img { display: inline; height: 25px; width:auto; margin: 10px 0 0 5px; vertical-align: top; transition: all 0.2s; }
    section#logoleiste a:first-child img { margin: 10px 0 0 0;}
    section#logoleiste a:hover img, section#logoleiste img:hover { height: 40px; margin-top:2px; }
    section#logoleiste a:first-child:hover img { height: 37px; margin-top: 4px; }
    section#logoleiste:hover img { /*margin-left:3px;*/ }

section#teaser { height:200px; background: #fff; display: none; }
    .home section#teaser { display: block; }
    section#teaser img { display: inline; height: 166px; width:auto; margin: 15px 0 0 4px; }
    section#teaser a:first-child img { margin: 15px 0 0 0;}
    
section#social { height: auto; min-height: 40px; background: #fff; display: none; }
    .home section#social{ display: block; }
    #socialbutton { font-size: 14px; color:#ba8411; line-height: 22px; cursor: pointer; float: left; }
    #socialbutton img { display: inline; vertical-align: middle; }
    #socialbutton em { font-style: normal; padding: 0px 5px; }
    #socialwrapper { width: 820px; padding-left: 180px; opacity: 0; height: 40px; overflow: hidden; }
    #socialbutton.aktiv img.pfeil { transform: rotate(90deg); -ms-transform: rotate(90deg); -webkit-transform: rotate(90deg); }
    .fb-page { margin: 0 0 10px 3px;}
    
    .fakebtn { display: block; width:100%; height: 200px; }


section > div { width: 1000px; margin: 0 auto; }
section#content > div { width: 1400px; padding: 0px 0px 0px 0px; }

h1,h2,h3,h4 {line-height: 1.2; }

h1 { font-size: 16px; line-height: 1.2; font-weight: 700; margin-bottom: 15px; color:#ba8411; }
h2 { font-size: 16px; font-weight: 500; margin-bottom: 15px; color:#ba8411; }
h3 { font-size: 16px; margin: 15px 0 10px 0; }
h6 { font-size: 12px; }

img { height: auto; }
ol { padding-left: 20px; }
ol li { margin-bottom: 10px; }

ul { padding-left: 20px; margin-bottom: 10px; }
ul li { margin-bottom: 5px; }

ul ul { margin: 10px 0 15px 0; }
ul ul li { font-size: 14px; }



footer { background: #fcf3d7; padding:5px 0; min-height: 120px; }
    footer div { width: 1000px; position: relative; margin: 0 auto; color: #ba8411; font-size: 14px; }
    footer .footerlink { position: absolute; right:0px; top: 0px; text-decoration: none; color: #ba8411; }
    footer .footerlink:hover { text-decoration: underline;   }


/* iphone */
a[href^=tel]{ color:inherit; text-decoration:none; }


.align-left { float: left; }
.align-right, .alignright { float: right; }



/* contact form */

input[type=text], input[type=email], textarea { font-size: 16px; font-family: Open Sans, Helvetica, Arial, sans-serif; background: #f5f5f6; border: 1px solid #b1b2b4; padding: 10px 10px; color: #333; width: 100%; margin: 0 0 9px 0;  -webkit-appearance: none; border-radius: 0; -webkit-text-size-adjust: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
input:focus, textarea:focus {outline: 0; }
.ie9 input:focus, .ie9 textarea:focus {outline: thin transparent; }

::-webkit-input-placeholder { font-size: 14px; }
::-moz-placeholder { opacity:1; 14px;}/* firefox 19+ */
:-ms-input-placeholder { 14px; }/* ie */
input:-moz-placeholder { opacity:1; 14px; }

/*.wpcf7-form { }*/
.wpcf7-list-item.first { margin-left: 20px; } 
.wpcf7-submit { background: #ba8411; padding:10px 60px; border-radius:5px; border:none; color: white; font-size: 17px; line-height: 1; margin-top: 15px; cursor: pointer; -webkit-appearance: none; border-radius: 0;  }
.wpcf7-validation-errors { border-color: #ff0000!important;}


span.wpcf7-not-valid-tip { float: none!important;  }
.wpcf7-captchac { margin-top: 8px; }

p.leftcol { float: left; width: 48%;  }
p.rightcol { float:right; width: 48%;  }
p.leftcolcap { float: left; width: 10%;  }
p.rightcolcap { float: left; width: 60%; margin: 0 20% 0 5%;  }
p.small { font-size: 13px; margin-bottom: 15px; }

/* -------------------------------------------------------- MOBILE ------------------------------------------  */

/* Media Queries */

@media screen and (max-width: 1200px) {
    
    section#logoleiste { overflow: hidden; overflow-x: scroll; }
    section#logoleiste div { margin: 0 0 0 10px; text-align: left; -webkit-overflow-scrolling: touch; }
    section#logoleiste img { margin: 10px 0 0 6px;  }
    
    section#logoleiste { padding-bottom: 15px; }
}

@media screen and (max-width: 768px)
{
    
    body { background: #fff; }
    header { height: auto; }
        header > div { width: 100%; height: auto; margin:0; position: relative; }
            header img { padding: 25px 0 10px 0; width:90%; height: auto; margin: 0 auto; }
            header ul { text-align: center; position: static; display: block; padding-bottom: 10px; }
            header ul li { display:inline; list-style-type: none; font-size: 13px; padding: 0 0 0 10px; margin: 0; text-align: center;  }
            header ul li:first-child { border-left: none; padding: 0 10px 0 0; }
        header .langswitch { top:5px; right: 10px; font-size: 13px; }      
        
    section#navi { background: #fcf3d7;  }
        nav { width: 100%; height: 30px; margin:0; }
        nav > ul { display: inline; padding-left: 0px; }
         

    .home section#visual, section#visual { display: none; }
    .home .keymobile { display: block; width: 100%; height: auto;  }

    section#teaser { height:auto; width:100%; background: #fff; }
        section#teaser img { display: block; height:auto; width:100%; margin: 5px 0 5px 0;}
        section#teaser a:first-child img { margin: 0px 0 5px 0;}

    
    section#social { width: 100%; height: auto; min-height: 40px; background: #fff; display: none; }
        .home section#social{ display: block; }
        #socialbutton { margin: 10px 0 0px 15px; }

        #socialwrapper { width: 100%; box-sizing: border-box; padding: 15px;  height: 40px; overflow: hidden; }
        .fb-page { margin: 10px 0 0px 0px;}    

    section > div { width: 100%; margin: 0; padding: 0; }
    section#content { box-sizing: border-box; padding:15px; }
    section#content > div { width: 100%; padding: 25px 0 30px 0px; }
             
    footer { padding:10px; box-sizing: border-box; }
    footer div { width: 100%; padding: 0px 0 15px 0;  }
    footer .footerlink { position: absolute; right:0px; top:auto; bottom:0px;  }

    /* Formular */
    
    /*.wpcf7-form { }*/

    input[type=text], input[type=email], textarea { box-sizing: border-box; padding: 15px 10px;  width: 100%;}
    select { width: 100%; }
    .wpcf7-submit { padding:20px 0px; width: 100%; font-size: 20px;  }
    
    .wpcf7-captchac { margin-top: 8px; }
    
    p.leftcol { float: none; width: 100%;  }
    p.rightcol { float: none; width: 100%;  }
    p.leftcolcap { float: left; width: 20%;  }
    p.rightcolcap { float: right; width: 70%; margin: 0;  }


    p.small { font-size: 13px; margin-bottom: 15px; }

}



#modal-bg {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background: rgba(0,0,0,0.5);
	visibility: hidden;
	opacity: 0;
	transition: all 0.3s linear;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

#modal-bg.show {
	visibility: visible;
	opacity: 1;
}

#modal {
	background: #f9ecb7;
	width: 100%;
	max-width: 800px;
	padding: 20px;
	box-sizing: border-box;
	
}

#modal .inner {
	padding: 50px 40px 25px;
    font-size: 20px;
    color: black;
	border: 1px solid #d18c10;
}

#modal .buttons {
	overflow: hidden;
	margin: 35px 0 0 0;
}

#modal button {
    width: 100%;
	max-width: 200px;
    height: auto;
    border: 1px solid #d18c10;
    text-transform: uppercase;
    font-size: 20px;
    color: #d18c10;
    padding: 10px 0;
	cursor: pointer;
	    -webkit-user-select: none; /* Safari 3.1+ */
    -moz-user-select: none; /* Firefox 2+ */
    -ms-user-select: none; /* IE 10+ */
    user-select: none; /* Standard syntax */
}

#modal button:last-child {
	float: right;
	color: white;
	background: #d18c10;
}

