/**********************************************************************************
* phpComasy Web Content Management System                                         *
* http://www.phpcomasy.com                                                        *
*                                                                                 *
* Copyright (c) 2005 - 2013 indual GmbH (http://www.indual.ch)                    *
*                                                                                 *
* phpComasy is released under his own licence (http://www.phpcomasy.com/licence)  *
**********************************************************************************/

@media screen and (max-width: 1005px) {
	div.sidebar,
	div.content {
		float: none;
		max-width: none;
		text-align: left;
	}
	div.sidebar {
		border-top: 1px solid #b0a48b;
		margin: 10px 0 0;
		padding: 15px 0 0;
	}
}
@media screen and (max-width: 985px) {
	header nav {
		max-width: none;
		float: none;
		margin: 5px 0 25px;
	}
	header {
		position: relative;
		padding-bottom: 0;
		margin-bottom: 20px;
		border-bottom: 1px solid #f6ecd8;
	}
	.page {
		padding-top: 0;
	}
	header .meta_wrap {
		margin: 5px 0 10px;
	}
	/*header .login {
		position: absolute;
		bottom: -28px;
		right: 5px;
	}*/
	body {
		border-color: #fff;
	}
	div.module-listing {
		width: 100%;
	}
}
@media screen and (max-width: 600px) {
	div.content_pictures .resource.picture {
		margin-left: 0;
		margin-right: 20px;
	}
}

@media screen and (max-width: 500px) {
	
	nav.subnavi {
		margin-top: 25px;
	}
	div.listing_entry {
		width: auto;
		display: block;
		padding: 1px 0;
		margin-right: 0;
	}
	div.listing-entry-inline {
		height: auto;
		margin-right: 0;
		margin-left: 0;
	}
	div.listing_entry .pictures .resource.picture {
		margin-top: 5px;
	}
	.page div.listing_entry .pictures {
		margin: 0 10px 10px;
		float: none;
	}
	.page div.listing_entry .pictures,
	.page div.listing_entry .pictures .resource.picture {
		float: none;
		display: block;
	}
	div.listing_entry .pictures .resource.picture img {
		width: 100%;
		height: auto;
	}
	.page header nav li {
		margin: 0 6px;
		line-height: 20px;
	}
	.page header nav .navigation a, 
	.page header nav .sub-navigation a {
		font-size: 17px; 
		line-height: 32px;
	}
	.page header nav .navigation ul a {
		font-size: 15px;
		line-height: 18px;
	}
}