/*
Theme Name: Peters
Theme URI: https://Peters.de/
Description: Wordpress Theme für Peters
Author: Peters
Version: 1.0
License: GNU General Public License
License URI: license.txt
Tags:
*/

body {
	font-family: Arial, Helvetica, sans-serif;
	color: #000000;
	font-size: 16px;
	background-color: #ffffff;
	line-height: 1.3;
}

body > header,
body > main,
body > footer {
	width: 1000px;
	margin: auto;
	margin-top:1em;
}

/* table definition */
.table {
	display: table;
	border-collapse: collapse;
}

.table-full {
	width: 100%;
}

.table-row {
	display: table-row;
}

.table-cell {
	display: table-cell;
}

#title-bar {
	table-layout: fixed;
	background-image: url('img/logo.png');
	background-repeat: no-repeat;
	background-attachment: scroll;
	background-position: center top; 
}

#header-top-row .table-cell {
	padding-bottom: 0.5em;
    color: #555555;
}

#header-mid-row .table-cell {
	border-color: gray;
	border-style: solid;
	border-width: 0px 0px 5px 0px;
	height: 200px;
}

#header-mid-row .table-cell:first-child {
	border-width: 5px 0px 5px 5px;
}

#header-mid-row .table-cell:last-child {
	border-width: 5px 5px 5px 0px;
}

#top-nav {
    width: 100%;
	box-sizing: border-box;
	margin-top: 1em;
	background-color: #dddddd;
}

#top-nav > ul {
	display: flex;
	justify-content: space-around;
	list-style: none;
	margin: 0;
	padding: 0;
}
#top-nav .menu li {
    text-align: center;
}

footer {
	clear: both;
}

#top-nav .current-menu-item {
	font-weight: bold;
}

#top-nav a {
	box-sizing: border-box;
	display: block;
    font-size: 1.2em;
    text-decoration: none;
    color: #983700;
    padding: 0.8em 0.5em;

}

/* top navigation menu */
#footer-nav {
	text-align: center;
	padding: 5px;
}

#footer-nav ul {
	margin: 0;
	padding: 0;
}

#footer-nav ul li {
	list-style-type: none;
	display: inline;
}

#footer-nav a {
	text-decoration: none;
    color: #555555;
	font-size: 0.9em;
}

#footer-nav li:not(:first-child):before {
	content: " | ";
}

header ul.mobile-menu,
header ul.mobile {
	display: none;
}

header ul.mobile-menu {
	border-top: 1px solid #555555;
	border-bottom: 1px solid #555555;
}

header ul.mobile-menu a {
	display: block;
	padding: 0.5em 0;
	text-decoration: none;
    color: #983700;
	font-weight: bold;
	text-align: center;
    font-size: 1.2em;
	border-bottom: 1px solid #aaaaaa;
}

header ul.mobile-menu .current-menu-item {
	background-color: #dddddd;
}

header ul.mobile-menu li:last-child a {
	border-bottom: unset;
}

#menu-logo {
    background: url(img/logo.png);
	background-size: auto 64px;
	background-position: center;
	background-repeat: no-repeat;
	height: 64px;
	width: 250px;
	display: inline-block;
}

.mobile-menu-hamburger {
    background: url(img/hamburger.png);
	background-size: auto 64px;
	height: 64px;
	width: 64px;
	display: inline-block;
	vertical-align: text-bottom;
	margin-right: 5px;
}

article header .mobile {
	display: none;
}

/* For mobile phones: */
@media only screen and (max-width: 768px) {
	#title-bar {
		display: none;
	}
	#top-nav {
		display: none;
	}
	header ul.mobile {
		display: flex;
		justify-content: space-between;
	}

	article header .mobile {
		display: block;
	}
	
	/* menu is close */
	#main-menu-container ul.mobile a.close,
	#main-menu-container ul.mobile-menu {
		display: none;
	}
	
	/* menu is visible */
	#main-menu-container:target ul.mobile a.close,
	#main-menu-container:target ul.mobile-menu {
		display: block;
	}
	
	#main-menu-container:target ul.mobile a.open {
		display: none;
	}

	body > header,
	body > main,
	body > footer {
		width: 100%;
	}

	body {
		padding: 1em;
	}

	img.aligncenter,
	.gallery img {
		box-shadow: unset !important;
		border: unset !important;
		padding: unset !important;
		background: #f2f2f2;
	}
	.gallery .gallery-item { width: 100% !important; }
	.gallery-columns-2 .gallery-item { width: 100% !important; }
	.gallery-columns-4 .gallery-item { width: 100% !important; }
}

/* layout options */
.align-bottom {
	vertical-align: bottom;
}

.align-top {
	vertical-align: top;
}

.align-center {
	text-align: center;
}

.align-right {
	text-align: right;
}

.gallery { margin: 0 auto 18px; }
.gallery .gallery-item {
	float: left;
	margin-top: 0;
	text-align: center;
	width: 33%;
}
.gallery-columns-2 .gallery-item { width: 50%; }
.gallery-columns-4 .gallery-item { width: 25%; }
img.aligncenter,
.gallery img {
	box-shadow: 0px 0px 4px #999;
	border: 1px solid white;
	padding: 8px;
	background: #f2f2f2;
}
.gallery-columns-2 .attachment-medium {
	max-width: 92%;
	height: auto;
}
.gallery-columns-4 .attachment-thumbnail {
	max-width: 84%;
	height: auto;
}
.gallery .gallery-caption {
	color: #888;
	font-size: 12px;
	margin: 0 0 12px;
}
.gallery dl, .gallery dt { margin: 0; }
.gallery br+br { display: none; }

/* =Global Elements
-------------------------------------------------------------- */
article a {
	color: #983700;
	font-weight: bold;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
	display: block;
	font-weight: bold;
}

article h1 {
	font-size: 2em;
	margin-top: 0.67em;
	margin-bottom: 0.67em;
}

article h2 {
	font-size: 1.5em;
	margin-top: 0.83em;
	margin-bottom: 0.83em;
}

article h3 {
	font-size: 1.17em;
	margin-top: 1em;
	margin-bottom: 1em;
}

article h4 {
	margin-top: 1.33em;
	margin-bottom: 1.33em;
}

article h5 {
	font-size: .83em;
	margin-top: 1.67em;
	margin-bottom: 1.67em;
}

article h6 {
	font-size: .67em;
	margin-top: 2.33em;
	margin-bottom: 2.33em;
}

article ul {
	list-style-type: disc;
	padding-left: 40px;
	margin-top: 1em;
	margin-bottom: 1em;
}

article ol {
	list-style-type: decimal;
	padding-left: 40px;
	margin-top: 1em;
	margin-bottom: 1em;
}

article li {
	display: list-item;
}

article p {
	margin-bottom: 1em;
	line-height: 1.3;
}

article table.bordered {
	border: 1px solid #69b088;
}
article table.bordered td {
	border: 1px solid #69b088;
	padding: 3px;
}

dl {
	margin: 0 0 24px 0;
}
dt {
	font-weight: bold;
}
dd {
	margin-bottom: 18px;
}
strong, 
b {
	font-weight: bold;
    color: #983700;
}
cite,
em,
i {
	font-style: italic;
}
big {
	font-size: 131.25%;
}
ins {
	background: #ffc;
	text-decoration: none;
}
blockquote {
	font-style: italic;
	padding: 0 3em;
}
blockquote cite,
blockquote em,
blockquote i {
	font-style: normal;
}
pre {
	background: #f7f7f7;
	color: #222;
	line-height: 18px;
	margin-bottom: 18px;
	overflow: auto;
	padding: 1.5em;
}
abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}
sup,
sub {
	height: 0;
	line-height: 1;
	position: relative;
	vertical-align: baseline;
}
sup {
	bottom: 1ex;
}
sub {
	top: .5ex;
}

hr {
	border-top: solid 2px #983700;
	border-bottom: 0;
	border-left: 0;
	border-right: 0;
	height: 1px;
}

/* =Images
-------------------------------------------------------------- */

/*
Resize images to fit the main content area.
- Applies only to images uploaded via WordPress by targeting size-* classes.
- Other images will be left alone. Use "size-auto" class to apply to other images.
*/
article img,
img.size-auto,
img.size-full,
img.size-large,
img.size-medium,
.attachment img {
	max-width: 100%; /* When images are too wide for containing element, force them to fit. */
	height: auto; /* Override height to match resized width for correct aspect ratio. */
}
.alignleft,
img.alignleft {
	display: inline;
	float: left;
	margin-right: 14px;
	margin-top: 4px;
}
.alignright,
img.alignright {
	display: inline;
	float: right;
	margin-left: 14px;
	margin-top: 4px;
}
.aligncenter,
img.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}
img.alignleft,
img.alignright,
img.aligncenter {
	margin-bottom: 12px;
}
.wp-caption {
	max-width: 100% !important;
	background: #f1f1f1;
	line-height: 18px;
	margin-bottom: 20px;
	padding: 4px;
	text-align: center;
}
.wp-caption p.wp-caption-text {
	color: #888;
	font-size: 16px;
	margin: 5px;
}
.wp-smiley {
	margin: 0;
}
#content-td .attachment img {/* single attachment images should be centered */
	display: block;
	margin: 0 auto;
}

.table-cell-b {
	border: thin solid red;
}
