/*
Theme Name: BackaufTheme-Child
Theme URI: http://www.backauf.de/internetauftritt/
Description: Responsives HTML5 & CSS3 Theme mit SEO-Optimiertem HTML-Code
Version: 2.4.1
Author: Nico Gutmann & Jonathan Malessa
Author URI: http://www.backauf.de/internetauftritt/
Template: BackaufTheme
*/

/***********************************
*** YOUR CODE HERE
***********************************/


/**************************
*** Iframe - Newsseite
**************************/
/**************************
*** FONTS
**************************/
h1{font-size: 25px!important;line-height: 1.5;font-family: "Times New Roman", Times, serif;color:#335C84;font-weight: 600}
h2,h3,h4,h5,h6{font-size: 22px!important;line-height: 1.3;font-family: "Times New Roman", Times, serif;color:#335C84;font-weight: 600}
#page a{color: #335C84}
p {line-height:1.33 !important;}
/**************************
*** CSS Werte
**************************/
.middle{max-width:1200px!important;margin: 0 auto!important;}
header .middle{max-width:1200px!important}
header > .clear{margin-bottom:5px;}
.scrollup{display: none!important;}
/**************************
*** HEADER
**************************/
header{max-width:1200px;height:auto;margin: 0 auto!important;background-color: #335C84!important;width:100%;border-bottom: 8px solid #ff9600}
header #header_infos{display: none;}
header #header_infos .middle{font-size: 12px;height: 12px;padding: 16px 0;}
header #header_infos .middle p{font-size: 12px;}
header > .middle{text-align: center}
header .middle #logo{margin: 20px auto 0;width: 300px;height: auto;}
header nav ul{list-style: none;}
*:not(footer,header) a{color:#335C84;text-decoration: underline;}
@media (min-width: 852px){
    header #logo{margin: 0 auto;text-align: center}
    nav {white-space: nowrap;margin: 20px 0 0;-webkit-box-shadow: inset 0px -8px 19px -14px rgba(0,0,0,0.75);-moz-box-shadow: inset 0px -8px 19px -14px rgba(0,0,0,0.75);box-shadow: inset 0px -8px 19px -14px rgba(0,0,0,0.75);}
    nav > div > ul > li > a{transition:.5s all ease-in-out;border-top: 3px solid transparent;top: 0;right: 0;left: 0;bottom: 0;clip: rect(-20px,1000px,42px,-20px);}
    nav > div > ul > li.current-menu-item > a, nav > div > ul > li.current-menu-ancestor > a{clip: rect(-20px,1000px,52px,-20px);}
    nav > div > ul > li.current-menu-item > a,nav > div > ul > li.current-menu-ancestor > a,nav > div > ul > li:hover > a{color:#335C84;background-color:#fff;border-top:3px solid #8eb6db;-webkit-box-shadow: 0px 0px 19px -7px rgba(0,0,0,0.75);-moz-box-shadow: 0px 0px 19px -7px rgba(0,0,0,0.75);box-shadow: 0px 0px 19px -7px rgba(0,0,0,0.75);}
    nav > div > ul > li.current-menu-item > a,nav > div > ul > li.current-menu-ancestor > a,nav > div > ul > li:hover > a{color:#335C84;}
    nav > div > ul > li.current-menu-item > a,nav > div > ul > li.current-menu-ancestor > a{padding-bottom:10px;vertical-align: bottom}
    nav ul ul .current-menu-item{background-color:rgba(255,255,255,.3)}
    nav ul {padding:0;margin:0;text-align: center;position: relative;}
    nav > div > ul {margin-bottom: -5px;height:52px;}
    nav ul li {display:inline-block;margin-left: 25px;position:relative;}
    nav a {display:block;padding:0 10px;font-size:15px;line-height: 40px;text-decoration:none;font-weight: bold;color:#fff;}
    nav ul ul {display: none;position: absolute;top: 42px;text-align: left;min-width:100%;transition:.5s top ease-in-out}
    nav ul li:hover > ul {display:block;}
    nav > div > ul > li.current-menu-item > ul,nav > div > ul > li.current-menu-ancestor > ul{top:52px;}
    nav ul ul li {float:none;display:list-item;position: relative;margin: 0;overflow: visible;}
    nav ul ul ul li {position: relative;}
    nav ul ul ul{min-width: 100%;left:100%;}
    header nav ul li > a:after { content:  ' +'; }
    header nav ul li > a:only-child:after{content:'';}
}
nav ul ul{background-color:#335C84;z-index: 10000;}
/**************************
*** MAIN
**************************/
main#withsidebar #sidebar{margin-right: 20px !important; padding:0;}
.middle > div > div:nth-child(even){background-color: #e6e6e6}
.middle > div > div{padding: 15px;}
.middle > div > div > div > div > p:last-of-type{margin-bottom: 0!important;}
.middle > div > div:first-of-type.panel-last-child{padding:0;}
.middle > div#pgc-6-0-0 > div{ padding:0!important;}
#panel-6-0-0-0{margin-bottom: 0!important;}
#panel-6-0-0-1{background-color:#335C84;color:#fff;font-family: "Times New Roman", Times, serif;}
#panel-6-0-0-1 p{margin:0}
#panel-6-0-0-1 *{line-height: 33px;text-align: center;}
#pgc-6-2-0 .wp-caption-text a{color:#fff!important}
.sidebar-kontakte{background: url('/wp-content/uploads/2017/02/hintergrund-sidebar-paragraph.png');background-position: center left;background-repeat: no-repeat;}
.sidebar-kontakte *{text-align:right; }
.sidebar-kontakte .siteorigin-widget-tinymce{font-size:12px!important;}
.sidebar-kontakte .panel-widget-style{background:transparent;}
.sidebar-kontakte p{font-size: 12px;line-height:1.5 !important;}
.teaser-hp p.wp-caption-text{font-size: 20px;color:#fff!important;background-color: transparent;line-height: 30px;padding: 0;margin: 0;}
.teaser-hp p.wp-caption-text a{color:#fff!important;}
.teaser-hp p{margin: 0;}
.teaser-hp .wp-caption{border: none;background-color: #335C84;}
.teaser-hp .wp-caption img{width:100%;height: auto;}
aside{margin-top: 10px!important;float:right!important;margin-right: 0!important;width:27.5%}
#sidebar{max-width: 277.5px!important}
main#withsidebar{margin-top: 30px!important}
#page{box-sizing: border-box;width:100%;overflow: hidden}
#page > article.newspost:nth-child(odd){background-color: #eaeff4}
#page > article.newspost{margin-bottom: 0;padding: 25px;}
#page > .news-title{margin-bottom: 0;padding:0 25px 15px;}
#pgc-50-0-0 > div:nth-child(1),#pgc-19-0-0 > div:nth-child(1),#pgc-27-0-0 > div:nth-child(1),#pgc-37-0-0 > div:nth-child(1),#pgc-189-0-0 > div:nth-child(1),#pgc-186-0-0 > div:nth-child(1), #pgc-413-0-0 > div:nth-child(1){margin-bottom:5px;}
#pgc-50-0-0 > div:nth-child(2),#pgc-19-0-0 > div:nth-child(2),#pgc-27-0-0 > div:nth-child(2),#pgc-37-0-0 > div:nth-child(2),#pgc-189-0-0 > div:nth-child(2),#pgc-186-0-0 > div:nth-child(2), #pgc-413-0-0 > div:nth-child(2){border-left:5px solid #ececec;padding:15px;}
#pgc-50-0-0 > div:nth-child(2) *:last-child,#pgc-19-0-0 > div:nth-child(2) *:last-child,#pgc-27-0-0 > div:nth-child(2) *:last-child,#pgc-37-0-0 > div:nth-child(2) *:last-child,#pgc-189-0-0 > div:nth-child(2) *:last-child,#pgc-186-0-0 > div:nth-child(2) *:last-child{margin-bottom:0}
#pgc-50-0-0 > div:nth-child(2) h4,#pgc-19-0-0 > div:nth-child(2) h4,#pgc-27-0-0 > div:nth-child(2) h4,#pgc-37-0-0 > div:nth-child(2) h4,#pgc-189-0-0 > div:nth-child(2) h4,#pgc-186-0-0 > div:nth-child(2) h4{font-size:18px!important;margin-left:1ch;}
.widget_sow-contact-form{background:#ececec;padding:15px;}
#sidebar > .widget > ul{margin: 0 0 15px;;padding: 0;}
#sidebar > .widget > ul > li{list-style-type: none;line-height: 1.2;padding: 5px;font-size: 15px;}
#sidebar > .widget > ul > li:nth-child(odd){background-color: #eaeff4}
.anwaltteaser > *{background-color:#fff;display: inline-block;padding-top:15px;border:1px solid #ececec;}
.anwaltteaser > .widget:nth-child(even){background-color:#ececec;}
@media(min-width:852px){
    .panel-grid-cell:nth-child(2) > .anwaltteaser > .widget:nth-child(odd){background-color:#ececec;}
    .panel-grid-cell:nth-child(2) > .anwaltteaser > .widget:nth-child(even){background-color:#fff;}
}
.anwaltteaser img{max-width:22%;height:auto;margin:0 25px 15px 15px!important;transition:all .5s ease-in-out;}
.anwaltteaser ul{list-style-type: none}
.anwaltteaser li{margin-left:15px;hyphens: auto;}
.anwaltteaser .widget p{margin:0;overflow:hidden;max-height:0;float:left;transition:all .5s ease-in-out;margin-left:15px;margin-right:15px;}
.anwaltteaser > *:hover img{max-width:40%;}
.anwaltteaser > *:hover p{max-height:100px;margin-bottom:15px;}
.anwaltteaser > *:hover{height:auto;}

*:not(nav) > div > ul {padding-left:15px;}
*:not(nav) > div > ul > li{line-height: 1.5;}
.wp-caption{border:none!important;width:unset!important;}
.wp-caption img{margin:0!important}
.wp-caption p:empty{display:none;}
#partner .wp-caption, #partner .wp-caption *{background: none!important;text-align: left}
.button {text-decoration: none;background-color: #eee;color: #333333;padding: .5em 1em;}
.button:hover {text-decoration: none;background-color: #ddd;}

#notfall_telefon{padding: 120px;width:960px;background-color: red;height: 135px;}
#notfall_telefon h1{color:white}
#notfall_telefon h1 a{color:white}


/**************************
*** FOMULARE
**************************/
.bigform{}
.bigform > strong{margin:0!important}
.bigform strong{display: block;background: rgba(0,0,0,0.1);padding:.7em .5em;margin:0 -.5em .7em}
.bigform > div{padding:0 .5em .7em;background-color:rgba(0,0,0,0);transition: background-color .3s ease-in-out;margin:.5em 0}
.bigform > div:hover{background-color:rgba(0,0,0,0.1);}
.bigform > div > div:not(:only-of-type){max-width:600px;float:left;width: calc(50% - 1em);}
.bigform > div > div{padding: .1em 1em .1em 0;}
.bigform > div > div span{line-height: 1.3;}
.bigform > div > div:nth-child(odd){padding: .1em 0 .1em 1em;}
.bigform > div > div > * > *:not([name*="trendat"]):not([type="radio"]){width:50%;display: block;box-sizing: border-box;float:left;}
.bigform > div > div > * > *[type="radio"] + *,.bigform > div > div > * > *[type="radio"],.bigform > div > div > * > *[type="checkbox"] + *,.bigform > div > div > * > *[type="checkbox"]{width:unset!important;display: initial!important;box-sizing: border-box;float: none!important}
.bigform > div::after{content:"";float: none;clear: both;display: block}
.bigform textarea{max-width:50%;}
@media(max-width:1155px){
    .bigform > div > div {width:100%!important;padding:.1em .1em .1em 0!important}
}
@media(max-width:420px){
    .bigform > div > div > * > *{width:100%!important;margin-bottom:5px}
    .bigform textarea{max-width:100%!important}
}
input[type="submit"]{background:#335C84!important;color:#fff!important;border:none!important;box-shadow: none!important;font-size: 1.2em;padding:.5em .9em;}
form{background:transparent!important;border:none!important;}
form > :not(.bigform) input,form > :not(.bigform) textarea{border:1px solid #000}
input[type='text'], input[type='email'], input[type='tel'], textarea {font-size:1em!important;padding: .4em .6em!important;font-size: 1em!important;}

/**************************
*** FOOTER
**************************/
footer{text-align: center;border-top: 1px solid #335C84;padding: 20px 0!important;}
footer *{font-size: 11px!important;color:#335C84!important}

/**************************
*************************** @ MEDIA MAX-WIDTH 851px
**************************/
@media(max-width:851px){
    header,#page,.middle{width:100%!important;}
	#page{padding:0!important;}
	main#withsidebar{margin-top:0!important;}
	aside#sidebar{width:100%;max-width:851px!important;box-sizing:border-box;}
    .so-widget-sow-slider{display: none}
    .panel-grid{padding-left:15px;padding-right:15px;}
    #panel-6-1-0-0,#pgc-6-0-0{padding:0!important}
    #mobilenav{width:100%;position:relative;background:#fff}
    #mobilenav > *{position: absolute;top:0;left:50%;transform:translateX(-50%);background-color:rgba(64,95,124,.2);width:100%;color:rgba(64,95,124,1)}
    nav div{background-color:#335C84}
    nav > div > ul > li{width:unset!important;height:unset!important}
    nav > div > ul > li > a{position: relative!important;}
    nav *,nav a{color:#fff;text-align: center;line-height: 1.75!important;font-size:20px!important;}
    nav a{width:90%;display:block;margin:0 auto;}
    nav > div > ul:first-of-type > li:first-of-type a{padding-top:.2em!important}
    nav ul ul{background-color:rgba(0,0,0,0.07)}
    nav ul{border-bottom:1px solid rgba(255,255,255,.7)}
    img{max-width: 100%!important;}
    .anwaltteaser img{margin-left:0px!important;}
    .anwaltteaser h3{margin-left:15px;margin-right:15px;}
	.no-print.button-primary{margin-left:15px;}
}
@media(max-width:475px){
    .anwaltteaser img{margin-right:0px!important;width:100%;}
}
@media not print{
	.print{display:none;}
}

/**************************
*************************** @ MEDIA PRINT
**************************/

@media print{
    
    /*********ausgeblendete Elemente******/
	.page-template-anwalt header,footer{display:none!important;}
	.page-template-anwalt #page section article .panel-layout > *:first-child > *:first-child h1 ~ *,.page-template-anwalt #page section article .panel-layout > *:first-child > *:first-child > *:not(:first-child){display:none;}
    .page-template-anwalt .panel-grid:last-of-type{display:none;}
     main#withsidebar > div#page > section > article a.no-print{display:none !important;}
    /****************************************/
    
    .page-template-anwalt body{width:210mm;}
	.page-template-anwalt #page *{margin:0!important;}
	.page-template-anwalt #page section article .panel-layout > *:first-child > *:nth-child(2) img{float:right!important;max-width:30mm!important;height:auto!important;top: 5mm;position: relative;}
	.page-template-anwalt #page section article .panel-layout > *:first-child > *:nth-child(2) p:last-child::after{content:"";display:block;clear:both;}  
	.page-template-anwalt .print{padding:0 20px;}
	.page-template-anwalt .print .twocol{display:flex;width:100%;justify-content:space-between;max-width:1200px;margin:0 auto;}
	.page-template-anwalt .print .twocol > *{min-width:45%;}
	.page-template-anwalt .print .twocol > * > *{min-width:100%;box-sizing:border-box;}
	.page-template-anwalt .print .twocol span{text-transform:uppercase;font-size:18px;font-family:sans-serif;margin-top:2.5em!important;}
	.page-template-anwalt .print .twocol small{margin-top:.7em!important;}
	.page-template-anwalt .print .twocol span,.page-template-anwalt .twocol small{display:block;}
	.page-template-anwalt .print .twocol input[type="text"]{background:transparent;border-bottom: 1px dashed #000;border-top:0 solid #000;border-left:0 solid #000;border-right:0 solid #000;}
	.page-template-anwalt .print .headline{font-size: 22px!important;line-height: 1.3;font-family: "Times New Roman", Times, serif;color:#335C84;font-weight: 600;white-space:nowrap;}
    .sidebar-kontakte * {text-align: left!important;}
    #page {float:right!important;}
     aside#sidebar{position: absolute;top: 1cm;left:0.6cm;float:left!important;clear:both;text-align: left;display: inline-block;z-index:-1;}
    p.wp-caption-text{display:hidden;}
    .page-template-anwalt #page div.text-widget h1{position: absolute; top:0; left:5cm;}
}
/**************************
*** Überschriften - Styling
**************************/
p.heading_size{font-size:22px; font-weight:bold; line-height:21px; color:#335C84;font-family: "Times New Roman", Times, serif;}
h5#heading_size{font-size:22px !important; font-weight:bold !important; color:#335C84;font-family: "Times New Roman", Times, serif; margin-left:0 !important;}
p.heading_size_big{font-size:35px; font-weight:bold; line-height:25px; color:#335C84;font-family: "Times New Roman", Times, serif;}
p.heading_size_small{font-size:18px; font-weight:bold; line-height:25px; color:#335C84;font-family: "Times New Roman", Times, serif;}
h2.h2_small{font-size: 20px !important; color:#223D58;}
div.textwidget > h1{font-size:22px !important; line-height: 1.3em !important;}
h4.fontSize18px{font-size:18px !important;}
#fontSize18px{font-size:18px !important; margin-left:0 !important;}
h1#willkommen_startseite{font-size:24px !important;}
/**************************
*** Bilder Anwälte - Sidebar Rechts
**************************/
#panel-626-1-1-1,#panel-89-1-1-1,#panel-617-1-1-1,#panel-587-1-1-1,#panel-587-1-1-2,#panel-82-1-1-1,#panel-520-1-1-1,#panel-86-1-1-1,#panel-86-1-1-2,#panel-86-1-1-3,#panel-524-1-1-1{background:transparent !important;}
.sidebar-bilder .wp-caption-text{width: 150px;padding-left:0;padding-right:0;}
/**************************
*** Sidebar Kontakt
**************************/
.sidebar-kontakte h6 {font-size: 20px !important; margin-bottom: 0.2em;}
.textwidget h5{font-size: 18px !important; margin-left: 1ch;}


div#panel-176-1-1-0{padding:0 !important;}
.anwaltteaser h3{line-height: 22px !important;}
.anwaltteaser > div{height:140px; width:350px;}

iframe body{background-color:#fff !important;}
iframe body table{background-color:#fff!important;}