/*** RESPONSIVE FIXES BY FABIAN HACKER – WWW.FABIANHACKER.DE ***/

/* JUST SOME FIXES FOR NORMAL SITE */

body {
	height: auto;
}

img {
	max-width: 100%;
	height: auto
}

.wrapper_footer_fix {
	overflow: unset;
}

#blog-7 .wrapper_footer_fix {
	overflow: hidden;
}

#footer_wrapper {
	width: auto;
}

.category_v1 {
	overflow: unset;
}

#breadcrumbs {
	width: auto;
	float: none;
	position: static;
	margin-top: 0;
	padding-top: 21px;
	margin-left: 218px;
	line-height: 275%
}

#category_description_v1 {
	width: auto !important;
	float: none;
	margin-left: 218px
}

#linky {
	max-width: 770px;
	float: none;
	width: auto;
}

.mansory_container {
	position: static;
	margin-left: 218px;
	float: none;
}

.category_v1 #nav_home_v2:after {
	content: "";
	clear: both;
    display: block;
    visibility: hidden;
    height: 0px;
}

.category_v1 #thumb_img {
	width: auto;
	max-width: 1000px
}

.category_v1 #nav_home_v2 {
	width: auto;
	max-width: 1000px;
	float: none;
	padding-bottom: 20px;
}

#thumb_img {
	min-width: unset;
}

.corner-stamp {
	position: absolute;
	top: 0;
}

.category_v1 #navigation_sidebar {
	margin-top: 0;
}

.boxy {
	width: calc((100% - 90px) / 3)
}

.boxy img {
	max-width: none !important;
}

form#searchform {
	width: auto !important;
	margin-right: 0
}

input#search_submit {
	margin-top: 0 !important;
	float: right;
	margin-right: 10px
}

.dwnld {
	float: right;
	max-width: 785px;
}

.search .type-page {
	max-width: 980px;
	width: 100%;
	margin-left: 0
}

#search_content {
	max-width: 577px;
	width: calc(100% - 390px);
	margin-left: 20px;
}

.search .type-post {
	width: 100%;
	max-width: 980px;
	margin-left: 0
}

/*** ARTICLE ***/

.singular .hentry {
	float: none;
}

.content_default .entry-title-2 {
	width: auto;
}

.post_content_article_article_image_middle .img_upper img {
	width: auto;
}

.post_content_article_article_image_middle .content_left {
	width: auto;
	float: none;
}

#nav_home_v2 {
	width: auto;
	max-width: 1000px
}

.footer_post {
	width: auto;
}

.single-format-standard .footer_post #posted_on {
	width: auto !important;
}

.post_content {
	padding-right: 20px
}

/*** SCHULLEITUNG ***/

#post_v1 .wrapper_menue_text_head {
	width: auto;
	max-width: 1000px;
	position: static;
}

#post_v1 #navigation_sidebar {
	top: 0
}

#post_v1 .entry-header {
	width: auto !important;
	float: none;
}

#post_v1 .entry-content, .entry-summary {
	width: auto;
	padding-right: 15px;
}

.kollegium {
	width: calc((100% - 30px) / 3);
	margin-left: 15px;
}

.kollegium:nth-child(3n) {
	margin-left: 0
}

#post_v2 {
	max-width: 1000px;
	width: auto;
}

.entry-meta {
	max-width: 1000px;
	width: auto;
}

#post_v1 .entry-content p {
	width: auto;
}

.leitung {
	float: left; 
	width: calc((100% - 30px) / 3); 
	margin-right: 15px;
}

.leitung:nth-child(4) {
	margin-right: 0
}

.home #breadcrumbs {
	margin-top: 0;
}

.page-template-sidebar-page-php #navigation_sidebar {
	margin-top: 0;
	top: 0;
	background-size: cover;
}

#navigation_sidebar h6 {
	width: auto;
}

.entry-content, .entry-summary {
	max-width: 1000px;
	width: auto;
}

.wrapper_menue_text_head {
	max-width: 1000px;
	width: auto;
}

#start2 {
	max-width: 1000px;
	width: auto;
}

.entry-content p {
	max-width: 784px;
	width: 100%
}

.posted_on_wrapper {
	margin-left: 0;
	width: auto;
	max-width: 1000px;
}

#main #posted_on {
	float: right !important;
	width: auto !important;
	max-width: 772px !important;
}

.entry-meta .edit-link a, .commentlist .edit-link a {
	display: none;
}

#ueberschrift_big_white h2 {
	max-width: 700px;
	width: auto !important;
}

.page-template-sidebar-page-php #thumb_img {
	padding: 0;
	margin: 0;
}

.page-box-overview {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	max-width: 784px;
}

.page-box {
	width: calc((100% - 40px) / 3);
	float: none;
	margin-right: 0
}

#breadcrumbs a:first-child {
	margin-left: 0
}

.fm-form input {
	padding: 10px 0 !important;
}

.fm-form input.submit {
	height: auto !important;
}

.page-id-402 .fm-form input.submit {
	margin-bottom: 10px;
}

.page #searchform {
	overflow: unset;
}

#text-3 {
	float: none;
}

.landwirt-page-box .page-box {
	width: calc((100% - 20px) / 2);
}

.landwirt-page-box .page-box img {
	width: 100% !important;
}

#start2 img {
	margin-right: 0
}

#navigation_sidebar aside {
	margin-top: 0
}

#fm-form-3 td input,
#fm-form-3 td select,
#fm-form-3 textarea,
#fm-form-5 td input,
#fm-form-5 td select,
#fm-form-5 textarea {
	width: 100% !important
}

#fm-form-3 td:first-child,
#fm-form-5 td:first-child {
	width: 150px !important
}

#fm-form-3 li[id*="fm-item-separator"] td:first-child,
#fm-form-5 li#fm-item--509a722acd123 td:first-child,
#fm-form-5 li#fm-item--509a722addfea td:first-child,
#fm-form-5 li#fm-item--509a722ae1e6b td:first-child,
#fm-form-5 li#fm-item--509a722aef934 td:first-child {
	width: 100% !important;
	font-weight: bold
}

#fm-form-3 #fm_form_submit,
#fm-form-5 #fm_form_submit {
	background-size: 10%;
}

.home .logo_2,
.logo_2 {
	margin-bottom: 0;
}

.green_balken_2 {
	width: calc(100% - 7px) !important;
}

.tinynav { 
	display: none;
	width: 100%;
	font-family: Tahoma,Arial,Helvetica,sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #624945;
    line-height: 17px;
    height: 30px;
}

.sekret-flex {
	display: flex;
	flex-wrap: wrap;
}

.sekret {
	width: calc((100% - 40px) / 3);
	margin-right: 20px;
	margin-bottom: 20px;
}

.sekret img {
	width: 100%;
}

.sekret:nth-child(3n) {
	margin-right: 0;
}

#fm-form-2 li td:first-child {
	width: 150px !important;
}

#fm-form-5 li:last-child td:first-child,
#fm-form-3 li:last-child td:first-child, 
#fm-form-2 li:last-child td:first-child {
	width: 100% !important;
	max-width: 400px;
}

#fm-form-5 li:last-child td:first-child label,
#fm-form-3 li:last-child td:first-child label,
#fm-form-2 li:last-child td:first-child label {
	text-align: right;
}

#fm-form-5 li input[type=checkbox],
#fm-form-3 li input[type=checkbox],
#fm-form-2 li input[type=checkbox] {
	height: auto;
	width: auto !important;
}

#fm-form-2 input[type=text],
#fm-form-2 textarea#textarea-4ffe8e38cc7ff {
	width: 100% !important;
}

#contact form {
	width: 100%;
	max-width: 627px;
}
@media screen and (max-width: 1002px) {
	.footer_bistro {
		float: none;
		margin-left: 20px;
		margin-top: -50px;
	}

	.entry-content p,
	#breadcrumbs, 
	.tinynav,
	.entry-content a,
	#main #posted_on,
	#menu-menue_footer li a,
	.footer_right_bottom_01 li a,
	.footer_bistro a,
	#post_v1 .entry-content p {
		font-weight: 400;
	}

	#breadcrumbs strong a,
	#breadcrumbs {
		font-weight: 400 !important
	}
}

/* LOWER THAN 960 */
@media screen and (max-width: 960px) {
	#logo_big_left {
		width: 52vw;
		background-size: 100%;
	}

	.footer-content:after {
		content: "";
		clear: both;
	    display: block;
	    visibility: hidden;
	    height: 0px;
	}
}

/* LOWER THAN 900 */
@media screen and (max-width: 900px) {
	#fm-form-4 li {
		width: 100% !important;
		box-sizing: border-box;
	}

	.page-id-402 #fm-item-text-506976ca63ef1,
	.page-id-402 #fm-item-text-5069770b47dca {
		margin-left: 0;
	}

	#fm-form-4 li:nth-child(3) td:first-child,
	#fm-form-4 li:nth-child(4) td:first-child,
	#fm-form-4 li:nth-child(5) td:first-child,
	#fm-form-4 li:nth-child(6) td:first-child {
		width: 20% !important;
	}

	#fm-form-4 li:nth-child(3) td input,
	#fm-form-4 li:nth-child(4) td input,
	#fm-form-4 li:nth-child(5) td input,
	#fm-form-4 li:nth-child(6) td input {
		width: 100%
	}
}


/* LOWER THAN 850 */
@media screen and (max-width: 850px) {
	.home #site-title {
		float: none;
		text-align: center;
	}

	#welcome {
		display: none;
	}

	.home #menu-menue_footer {
		text-align: center;
	}

	#menu-menue_footer li {
		float: none;
		display: inline-block;
	}

	#logo_big_left {
		display: none;
	}

	#secondary {
		float: none;
		margin-top: 20px;
	}

	#nav_menu-2,
	#nav_menu-3,
	#nav_menu-4 {
		width: 100%;
	}

	#nav_menu-3 {
		padding-bottom: 42px;
		margin: 0 0 1.2em;
	}

	.boxy {
		width: calc((100% - 60px) / 2)
	}

	.sekret {
		width: calc(50% - 20px);
		margin-right: 20px;
		margin-bottom: 20px;
	}

	.sekret:nth-child(2n) {
		margin-right: 0;
	}

/* LOWER THAN 800 */

@media screen and (max-width: 800px) {

	.tinynav { display: block }
    #navigation_sidebar ul.menu, 
    #navigation_sidebar .widget_categories ul { 
    	display: none 
    }

	.corner-stamp {
		width: 100%;
	}

	#breadcrumbs {
		margin-left: 0
	}

	.mansory_container {
		margin: 0 15px;
	}

	#category_description_v1 {
		margin-left: 15px;
		margin-right: 15px;
	}

	#breadcrumbs {
		padding: 183px 15px 0 15px;
	}

	#blog-6 #breadcrumbs {
		padding-top: 265px;
	}

	.read span {
		display: block;
		float: none;
		position: static;
		text-decoration: none;
		text-align: center;
	}

	.read a {
		text-decoration: none;
		font-style: normal;
	}

	#navigation_sidebar h6 {
		display: none;
	}

	#blog-6 #navigation_sidebar h6 {
		text-align: center;
		display: block;
		padding-top: 0 !important
	}

	.trenner {
		display: none;
	}

	#navigation_sidebar li a {
		font-size: 16px
	}

	.footer-address {
		float: none;
		margin-top: 0;
		padding-top: 20px;
		font-style: normal;
	}

	.footer-address p {
		text-align: center;
	}

	.right_menue {
		float: none;
	}

	ul#menu-menue_footer {
		text-align: center;
	}

	.content_default {
		margin-left: 0
	}

	.single-format-standard .footer_post {
		margin-left: 0
	}

	.post_content {
		padding-right: 0px
	}

	#post_v1 #navigation_sidebar,
	.corner-stamp #navigation_sidebar,
	.page-template-sidebar-page-php #navigation_sidebar {
		background-image: url(../images/logo_Berufschulen.png);
		background-size: 290px;
		background-position: top center;
		width: calc(100% - 30px);
		padding-top: 130px;
		left: 15px;
	}

	.logo_2 {
		display: none;
	}

	#navigation_sidebar > a:first-child {
	    width: 290px;
	    display: block;
	    height: 110px;
	    position: absolute;
	    top: 0;
	    left: 50%;
	    margin-left: -145px;
	}

	#navigation_sidebar ul {
		text-align: center;
	}

	#navigation_sidebar li {
		display: inline-block;
		margin: 0 8px;
	}

	#post_v1 .entry-header {
		margin-left: 0;
	}

	#post_v1 .entry-content, .entry-summary {
		margin-left: 0
	}

	#post_v1 article,
	.post_v1 article,
	.post_v1 .footer_post {
		padding: 0 15px
	}

	.footer-content #searchform {
		float: none !important;
		margin: 0 auto;
		width: 260px !important;
		overflow: unset;
		display: block;
		height: auto;
		min-height: 40px;
		padding-bottom: 20px;
		margin-top: 10px;
	}

	#start2 {
		margin: 0 15px;
	}

	#ueberschrift_big_white {
		padding: 0 15px;
		text-align: center;
		bottom: 40px;
		left: auto;
	}

	.page-template-sidebar-page-php #thumb_img {
		background-position: 0 240px !important;
	}

	#blog-6 #thumb_img {
		height: 582px;
	}

	#blog-6.page-template-sidebar-page-php #thumb_img {
		background-position: 0 302px !important;
	}

	#blog-6 #start2 {
		padding-right: 0
	}

	#blog-6 article#post-2 {
		padding-top: 0
	}

	.home .footer-content #second,
	.home .footer_suche {
		float: none;
	}

	.home .footer-content #second {
		margin-top: 0
	}

	.search_fix {
		position: static;
		width: auto;
		margin-left: 0;
		margin-top: 88px !important;
	}

	.home .footer_suche {
		margin-left: 0;
		width: auto !important;
	}

	.home .footer_suche .clear {
		display: none;
	}

	.home #searchform {
		margin: 0
	}

	.home input#s {
		margin-right: 0px;
		float: none;
	}

	.home #searchform {
		width: auto !important;
		text-align: center;
	}

	.home #searchform input#search_submit {
		margin-left: 0px !important;
		margin-top: 0 !important;
		float: none;
		position: relative;
		top: 1px;
	}

	#text-4 a  {
		float: none !important;
	}

	.footer_right_bottom_01 {
		width: auto !important;
		margin-bottom: 20px;
		min-width: unset !important;
	}

	.footer_right_bottom_01 li {
		float: none;
	}

	.home .footer-address {
		float: none;
	}

	.footer_bistro {
		margin: 10px 0 20px 0;
	}

	#post_v1 .entry-content, .entry-summary {
		padding-right: 0
	}

	#blog-7 #navigation_sidebar {
		height: auto !important;
	}
}

/* LOWER THAN 740 */

@media screen and (max-width: 740px) {

	.search img[class*="align"], .search img[class*="wp-image-"], .search img[class*="attachment-"] {
		float: none;
		max-width: 100%;
		text-align: center;
	}
	
	#search_content {
		max-width: 100%;
		width: 100%;
		margin: 20px 0 0 0;
	}

	.blog #page #main {
		min-height: unset !important;
		height: auto;
	}

	footer#colophon {
		margin-top: 0;
		text-align: center;
	}

	#menu-menue_right_top li a, #menu-menue_right_middle li a, #menu-menu_bistro li a, .widget #menu-item-11 a {
		display: block;
		padding-top: 4px;
		line-height: 152%;
	}

	#nav_menu-2,
	#nav_menu-3,
	#nav_menu-4 {
		background-size: cover;
		min-height: 150px
	}

	.page-box {
		width: calc((100% - 20px) / 2)
	}

	.page-box img {
		width: 100% !important;
	}

	.sekret {
		width: 100%;
		margin-right: 0px;
		margin-bottom: 20px;
	}
}

/* LOWER THAN 700 */

@media screen and (max-width: 700px) {
	#fm-form-4 li:nth-child(2) td {
		width: 50% !important;
	}

	.page-id-402 #custom_list-506975f8aa840 {
		width: calc(100% - 10px);
		margin-left: 0 
	}
}

/* LOWER THAN 650 */

@media screen and (max-width: 650px) {
	#fm-form-4 li:nth-child(8) td,
	#fm-form-4 li:nth-child(9) td,
	#fm-form-4 li:nth-child(10) td,
	#fm-form-4 li:nth-child(11) td {
		width: 100% !important;
		display: block;
	}

	#file-506979de84d4c,
	#file-50697735c22da,
	#file-506977ea489d6,
	#file-50697a2ca5ed4 {
		margin-left: 30px;
		margin-top: 5px;
		margin-bottom: 15px;
	}

	#fm-form-4 li:nth-child(8),
	#fm-form-4 li:nth-child(9),
	#fm-form-4 li:nth-child(10),
	#fm-form-4 li:nth-child(11) {
		height: auto;
		background-size: cover;
	}
}

@media screen and (max-width: 615px) {
	#blog-6 #thumb_img {
		height: 647px;
	}

	#blog-6.page-template-sidebar-page-php #thumb_img {
		background-position: 0 367px !important;
	}

	#blog-6 #breadcrumbs {
		padding-top: 330px;
	}
}

/* LOWER THAN 575 */

@media screen and (max-width: 575px) {
	.boxy {
		margin-right: 0;
		width: calc(100% - 20px);
	}

	.leitung {
		width: calc((100% - 15px) / 2);
		margin-bottom: 15px;
	}

	.leitung:nth-child(3) {
		margin-right: 0
	}

	.kollegium {
		width: calc((100% - 15px) / 2);
		margin: 15px 15px 15px 0;
	}

	.kollegium:nth-child(2n) {
	    margin-right: 0px;
	}

	.kollegium img {
		width: 100%;
	}

	#navigation_sidebar li {
		line-height: 170%;
	}

	#ueberschrift_big_white h2 {
		font-size: 38px
	}

	#fm-form-4 li:nth-child(2) td {
		width: 100% !important;
		display: block;
	}

	.page-id-402 #custom_list-506975f8aa840 {
		width: 100%;
		margin-top: 5px;
		padding-left: 0 
	}

	#fm-form-4 li:nth-child(3),
	#fm-form-4 li:nth-child(4),
	#fm-form-4 li:nth-child(5),
	#fm-form-4 li:nth-child(6) {
		padding-left: 0
	}

	#fm-form-4 li:nth-child(3) td,
	#fm-form-4 li:nth-child(4) td,
	#fm-form-4 li:nth-child(5) td,
	#fm-form-4 li:nth-child(6) td {
		width: 100% !important;
		display: block;
	}

	#fm-form-4 li:nth-child(3) input,
	#fm-form-4 li:nth-child(4) input,
	#fm-form-4 li:nth-child(5) input,
	#fm-form-4 li:nth-child(6) input {
		margin-top: 5px;
	}

	.page-id-402 .fm-form input.submit {
		width: 100% !important;
	}

	.dwnld p {
		width: 100% !important; 
		text-align: center;
		float: none !important;
		margin-left: 0 !important
	}

	.dwnld img {
		margin-left: 0 !important;
	}

	#fm-form-3 td,
	#fm-form-5 td {
		width: 100% !important;
		display: block;
	}

	#fm-form-3 td:first-child,
	#fm-form-5 td:first-child {
		margin-bottom: 5px !important;
	}

	#fm-form-3 #fm_form_submit,
	#fm-form-5 #fm_form_submit {
		width: 100% !important;
	}

	#blog-7 #breadcrumbs {
	    padding: 220px 15px 0 15px;
	}

	#blog-7.page-template-sidebar-page-php #thumb_img {
		background-position: 0 270px !important
	}

	#fm-form-2 li td {
		width: 100% !important;
		display: block;
	}
}

/* LOWER THAN 400 */

@media screen and (max-width: 400px) {
	.kollegium {
		width: 100%;
		margin: 15px 0;
	}

	.leitung {
		width: 100%;
		margin-bottom: 15px;
	}

	.leitung img {
		width: 100%;
		max-height: none !important
	}

	.footer-content #searchform {
		width: auto !important;
		height: auto;
		padding-bottom: 15px;
	}

	input#search_submit {
		width: 100%;
		display: block;
		-webkit-appearance: none;
		margin: 0 auto;
		float: none;
	}

	input#s {
		width: calc(100% - 38px);
		display: block;
		float: none;
		margin-bottom: 10px;
	}

	.page-box,
	.landwirt-page-box .page-box {
		width: 100%
	}

	.flex-row {
		display: block;
	}

	.flex-cell {
		width: 100%;
	}

	#blog-12 .wrapper_menue_text_head {
		height: auto;
	}
}