/*-------------------------------------------*/
/* Theme Name: automatentest.de              */
/* Theme URI: https://www.automatentest.de   */
/* Version: 1.0                              */
/*-------------------------------------------*/

section#posts {
	margin-bottom: 15px;
}

section#welcome {
	margin: 15px 0;
	padding: 0 1px 0 0;
}
section#welcome:after {
	clear: both;
	content: '';
	display: table;
}
section#welcome article {
	width: 65%;
	height: 123px;
	padding: 10px;
	overflow: hidden;
	float: left;
	background: #0000004d;
	box-sizing: border-box;
	position: relative;
	-webkit-transition: all 0.3s linear;
	-moz-transition: all 0.3s linear;
	-ms-transition: all 0.3s linear;
	-o-transition: all 0.3s linear;
	transition: all 0.3s linear;
}
section#welcome article p {
	color: #AAA;
}
section#welcome article:first-child {
	width: 35%;
	height: 389px;
	float: left;
	border-right: 10px solid #3A3A3C;
}
section#welcome article:first-child:hover {
	border-right: 10px solid #3A3A3C;
}
section#welcome article:nth-child(3),
section#welcome article:nth-child(4) {
	margin-top: 10px;
}
section#welcome article:first-child .img {
	width: 100%;
	height: 200px;
	margin-bottom: 10px;
	display: block;
}
section#welcome article:first-child .img img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: 50% 0;
}
section#welcome article:nth-child(2) img,
section#welcome article:nth-child(3) img,
section#welcome article:nth-child(4) img {
	width: 100px;
	height: 73px;
	margin: 0 10px 0 0;
	object-fit: cover;
	display: block;
	float: left;
}
section#welcome article:nth-child(2) h3,
section#welcome article:nth-child(3) h3,
section#welcome article:nth-child(4) h3 {
	font-weight: 400;
	text-shadow: 0 -1px #000;
}
section#welcome article:first-child h3 {
	margin-bottom: 10px;
}
section#welcome article h3 a {
	color: #FFF;
	font-size: 15px;
}
section#welcome article div.read {
    width: 100px;
    height: 24px;
    line-height: 24px;
    cursor: pointer;
    color: #404040;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 1px rgba( 255, 255, 255, 0.7 );
    position: absolute;
    right: 10px;
    top: inherit;
    bottom: 10px;
}
section#welcome article div.category {
    width: 420px;
    height: 24px;
    line-height: 24px;
    font-size: 13px;
    position: absolute;
    bottom: 10px;
    left: 10px;
}
section#welcome article:hover {
	color: #FFF;
    border-color: #777;
    background: #00000080;
}
section#welcome article:hover h3 a {
	color: #2ef2f4;
}
section#posts.category article img {
	object-fit: cover;
	object-position: 50% 0;
}

aside ul.related li {
	height: 80px;
	background: #28282A;
	-webkit-transition: all 0.3s linear;
	-moz-transition: all 0.3s linear;
	-ms-transition: all 0.3s linear;
	-o-transition: all 0.3s linear;
	transition: all 0.3s linear;
}
aside ul.related li+li {
	margin-top: 10px;
}
aside ul.related li a img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	object-position: 50% 0;
	display: block;
	float: left;
}
aside ul.related li span {
	max-width: 212px;
	height: 100%;
	padding-left: 20px;
	padding-right: 10px;
	color: #FFF;
	font-size: 15px;
	font-weight: 400;
	align-items: center;
	display: inline-flex;
}
aside ul.related li:hover {
	color: #FFF;
    border-color: #777;
    background: #00000080;
}
aside ul.related li:hover span {
    color: #2ef2f4;
}

.aawp .aawp-product--horizontal.aawp-product--style-dark {
	margin-top: 20px;
	margin-bottom: 20px;
	background: #222222;
}
.aawp .aawp-product--horizontal {
	border: 0;
}

div#pager {
	text-align: center;
}

.wp-pagenavi {
	display: inline;
}
.wp-pagenavi span,
.wp-pagenavi a {
    height: 24px;
    line-height: 24px;
    margin-left: 5px;
    padding: 4px 8px;
    text-align: center;
    color: #CCC;
    text-shadow: 0 -1px #000;
    background: #0000004d;
}
.wp-pagenavi span.current,
.wp-pagenavi a:hover {
    color: #FFF;
    font-weight: 400;
    background: #ffffff1a;
}

.nafets-stars_table {
	display: none;
}
#rating {
	margin: 10px auto 0 auto;
}
.nafets-stars_hide {
	padding-top: 5px;
	text-align: center;
	display: block;
}
.nafets-stars_hide span[itemprop="worstRating"] {
	display: none;
}

.wp-image-133 {
	margin: 0 10px 0 0 !important;
}
section#posts.category article.magazin h3 {
	overflow: hidden;
}

@media only screen and (max-width:768px) {
	section#welcome article:first-child,
	section#welcome article {
		width: 100%;
		height: 200px;
		border: 0;
		float: none;
	}
	section#welcome article:first-child:hover {
		border: 0;
	}
	section#welcome article:first-child h3 {
		margin: 0;
	}
	section#welcome article+article {
		margin-top: 10px;
	}
	section#welcome article div.read,
	section#welcome article p,
	section article div.category {
		display: none;
	}
	section#welcome article .img img {
	    width: 242px !important;
	    height: 150px !important;
	    cursor: pointer;
	    display: block !important;
	    position: absolute;
	    top: 10px;
	    left: 50%;
		margin-left: -121px;
    }
	section#welcome article h3 {
		width: 100%;
		height: 43px;
		line-height: 46px;
		position: absolute;
        text-align: center;
		background: none;
		box-shadow: none;
	    font-weight: 400;
	    text-shadow: 0 -1px #000;
	    text-transform: uppercase;
		border: none;
		top: auto;
		left: 0;
		bottom: 0;
	}
	section#welcome article h3 a {
		font-size: 17px;
	}
}