/*
Theme Name: Sports Theme
Theme URI: https://webentwicklung-otten.de/wp-themes/sports
Author: Florian Otten
Author URI: https://webentwicklung-otten.de/
Description: Wordpress Theme für sportvereine.
Version: 0.2.2
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: wefo-sports
Tags: sports, club, sports-club
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* TYPO */

body{
	font-family: 'lato', sans-serif; 
	min-width: 360px;
}

hr{
	height: 3px;
	border: none;
}

h1, h2, h3, h4, h5, h6{
	margin-bottom: 0;
	margin-top: 1.5em;
}

h1 + h2,
h1 + h3,
h1 + h4,
h1 + h5,
h1 + h6,
h2 + h3,
h2 + h4,
h2 + h5,
h2 + h6,
h3 + h4,
h3 + h5,
h3 + h6,
h4 + h5,
h4 + h6,
h5 + h6{
	margin-top: 0.25em;
}

h1, h2{
	text-transform: uppercase;
}

h6{
	font-size: .9em;
	color: #aaa;
	font-weight: normal;
}


/* GRID */

body{
    margin: 0;
}

a,
address,
article,
aside,
blockquote,
button,
dd,
div,
dl,
dt,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hr,
input,
label,
li,
main,
nav,
ol,
p,
pre,
section,
table,
ul,
video{
	box-sizing: border-box;
}

.container{
	padding: 0 15px;
	margin: 0 auto;
	width: 100%;
}



/* WP_BLOCKS */

.wp-block-media-text{
	margin: 1em 0;
}

.wp-block-table.table-list table{
    margin: .25em 0;
	width: auto;
}

.wp-block-table.table-list table,
.wp-block-table.table-list th,
.wp-block-table.table-list td{
    border: none;
    padding: .2em 0;
}

.wp-block-table.table-list td {
    padding-right: 1em;
}

.wp-block-table.table-list td:first-of-type {
    color: #777;
}



/* HEADER */

#m-header{
    height: 10em;
	font-size: .8em;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#m-header .container {
	display: flex;
	align-items: center;
	height: 100%;
	justify-content: flex-end;
}

#m-header .header-text {
	padding: 0 1em .3em;
}

#m-header .site-title,
#m-header .site-description{
	color: rgba(255, 255, 255, .9);
}

#m-header .site-title{
	display: block;
	text-decoration: none;
	font-size: 1.5em;
	padding: .3em 0;
}

#m-header .site-description{
	border-top: 1px solid;
	padding: .3em 0;
	display: block;
}

#m-header .custom-logo-link {
	margin-left: auto;
	text-decoration: none;
	display: block;
}

#m-header .custom-logo {
	max-height: 6em;
    width: auto;
	display: block;
}


/* NAVIGATION */

.top-menu li{
	list-style-type: none;
}

.top-menu li a{
	display: block;
	color: inherit;
	text-decoration: none;
	text-underline-offset: .2em;
	padding: 1.2em 1em;
}

.top-menu ul li a{
	border-bottom: 1px solid #bbb;
}

.top-menu ul li:last-child > a{
	border-bottom: none;
}

.top-menu li a:hover,
.top-menu .current-menu-item > a{
	text-decoration: underline;
}

#m-navigation .top-menu-toggle{
    color: #eee;
    padding: .5em 0;
}

#m-navigation .top-menu-toggle span{
    font-size: 2.5em;
}

#m-navigation .top-menu{
	display: none;
	flex-wrap: wrap;
	justify-content: space-between;
	color: #fff;
	font-size: .9em;
	padding: 0;
	margin: 0;
}

#m-navigation .top-menu ul{
	padding: 0;
	margin: 0;
}

#m-navigation .top-menu > li > ul{
	padding: 0;
	display: none;
}

#m-navigation .top-menu li:hover > ul{
	display: block;
}

#m-navigation .top-menu ul li{
	margin: auto 1em;
}

#m-navigation .top-menu li{
	position: relative;
	z-index: 1;
}

#m-navigation .top-menu > li ul{
	position: absolute;
	z-index: 1;
	top: 100%;
	left: 0;
	background-color: rgba(240, 240, 240, .95);
	color: #555;
}

#m-navigation .top-menu > li:last-child > ul{
	right: 0;
	left: auto;
	text-align: right;
}

#m-navigation .top-menu > li > ul li{
	min-width: 140px;
	max-width: 230px;
}

#m-navigation .top-menu ul li a{
	padding: .75em 0;
}

#m-navigation .top-menu ul ul{
	display: none;
	position: absolute;
	z-index: 1;
	left: 100%;
	top: 0;
}

#m-navigation .top-menu > li:last-child ul ul{
	left: calc(-100% - 3em);
}

#m-navigation .top-menu .menu-item-expand{
	display: none;
	position: absolute;
	z-index: 1;
	top: 50%;
	right: 0;
	height: 1em;
	margin-top: -.5em;
	opacity: .5;
}

#m-navigation .top-menu ul .menu-item-expand{
	transform: rotate(-90deg);
}


#m-navigation .top-menu li:last-child ul .menu-item-expand{
	transform: rotate(90deg);
	right: calc(100% - 0.5em);
}

#m-navigation .top-menu li:hover > .menu-item-expand{
	opacity: 1;
}

#m-navigation .top-menu .menu-item-has-children > .menu-item-expand{
	display: block;
}

#m-navigation .top-menu .menu-item-has-children{
	padding-right: 1em;
	padding-left: 0:
}

#m-navigation .top-menu li:last-child .menu-item-has-children{
	padding-right: 0;
	padding-left: 1em:
}

#mobile-navigation{
	display: block;
	background-color: #eee;
	color: #444;
}

#mobile-navigation li{
	border-bottom: 1px solid #ccc;
}

#m-wrapper{
	
}

/* SIDEBAR */

#m-sidebar{
    
}


/* WIDGET */

.widget{
	list-style-type: none;
	margin: 2em 0;
}

.widget ul.menu,
.widget ul.menu ul{
	padding: 0;
}

.widget ul.menu ul li{
	padding-left: .5em;
}

.widget ul.menu ul{
	border-top: 1px solid #aaa;
}

.widget ul.menu li{
	list-style-type: none;
	border-bottom: 1px solid #aaa;
}

.widget ul.menu li:last-child{
	border-bottom: none;
}

.widget ul.menu a{
	display: block;
	padding: .5em 0;
	text-decoration: none;
}

.widget ul.menu a:hover{
	text-decoration: underline;
}

.widget ul.menu ul ul{
	display: none;
}


/* MAIN */

#m-content{
    
}

#m-content .wp-block-latest-posts__list li:after {
	content: '';
	display: block;
	clear: both;
}
.wp-block-latest-posts__post-title{
	font-size: 1.3em;
	font-weight: bold;
	text-decoration: none;
	color: darkblue;
	margin-bottom: .6em;
}

#m-content hr{
	margin: 3em 0;
}

#m-content article{
	margin: 2em 0 4em;
}

article header{
	margin-bottom: 1.5em;
}

article header h1,
article header h2{
	margin: 0;
}

.page-breadcrumbs{
	font-size: .9em;
	margin-top: .5em;
}

.page-breadcrumbs a{
	text-decoration: none;
	color: #aaa;
}

.page-breadcrumbs a:after{
	content: '>';
	display: inline;
	margin: 0 .5em;
}

.page-breadcrumbs a:last-of-type:after{
	display: none;
}

#m-wrapper{
	padding: 3em 0 5em;
}

#m-wrapper:after{
	content: '';
	display: block;
	clear: both;
}


/* SPONSOREN */

#m-sponsors{
	background-color: #ddd;
	padding: 2em 0;
}

#m-sponsors:after{
	content: '';
	display: block;
	clear: both;
}

#m-sponsors ul{
	margin: 0;
	padding: 0;
}

#m-sponsors li{
	list-style-type: none;
	width: 50%;
	float: left;
}

#m-sponsors a{
	display: block;
	margin: 3em 2em;
}

#m-sponsors img{
	width: 100%;
	height: auto;
}

#m-sponsors span{
	display: none;
}

#m-sponsors ul ul{
	display: none;
}


/* FOOTER */

#m-footer{
	color: #ddd;
	padding: 2em 0 1em;
	background-color: #333;
}

#m-footer a{
	color: #ddd;
}

#m-footer .widgets{
	display: flex;
	justify-content: space-between;
}

#m-footer hr{
	color: #ddd;
	background-color: #ddd;
}

.widgets-footer{
	min-width: 30%;
}



/***** SMALL DEVICES *****/
@media (min-width: 576px) { /* SM */

	/* GRID */
	.container{
		width: 95%;
	}

	/* HEADER */
	#m-header{
		font-size: 1em;
	}

}

/***** MEDIUM DEVICES *****/
@media (min-width: 768px) { /* MD */

	/* GRID */
	.container{
		width: 95%;
		max-width: 840px;
	}

	/* HEADER */
	#m-header{
		font-size: 1.2em;
	}

    /* SIDEBAR */
    #m-sidebar{
        width: 180px;
        float: right;
        font-size: .9em;
    }
	
	/* NAVIGATION */
	#m-navigation .top-menu{
		display: flex;
	}

	#m-navigation .top-menu-toggle{
		display: none;
	}

	#mobile-navigation{
		display: none;
	}

	/* MAIN */
    #m-content{
        width: calc(100% - 180px - 2em);
        float: left;
    }

	/* SPONSORS */
	#m-sponsors li{
		width: 33.33%;
	}
}

/***** LARGE DEVICES *****/
@media (min-width: 992px) { /* LG */

	/* GRID */
	.container{
		width: 85%;
		max-width: 1200px;
	}

	/* HEADER */
	#m-header{
		font-size: 1.4em;
	}

    /* SIDEBAR */
    #m-sidebar{
        width: 250px;
        font-size: 1em;
    }

	/* MAIN */
    #m-content{
        width: calc(100% - 250px - 2em);
    }

	/* SPONSORS */
	#m-sponsors li{
		width: 25%;
	}

	
}

/***** EXTRA LARGE DEVICES *****/
@media (min-width: 1200px) { /* XL */

	/* GRID */
	.container{
		
	}

	/* HEADER */
	#m-header{
		font-size: 1.6em;
	}
    
}