/* TSG Bokel e.V. - abgeleitet von html5_stylesheet*.css und print.css */

* { box-sizing: border-box; }

body {
	background-color: #ffffff;
	color: #000000;
	font-family: Calibri, Verdana, Geneva, sans-serif;
	margin: 0;
}

a { color: #0066ff; text-decoration: none; }
a:hover { color: grey; text-decoration: underline; }
a:active { color: grey; }

img { max-width: 100%; height: auto; margin: 3px; }
img.left, .left { float: left; }
img.right, .right { float: right; }
.clear { clear: both; }

/* ---- Kopf und Fuß ---- */
.site-header {
	background-color: darkblue;
	background-image: url(../images/bghead.jpg);
	color: #ffffff;
	font-size: xx-large;
	font-style: italic;
	font-weight: bolder;
	padding: 10px;
	text-align: center;
}
.site-footer {
	background-color: darkblue;
	clear: both;
	color: #ffffff;
	font-size: large;
	font-style: italic;
	font-weight: bolder;
	padding: 5px;
	text-align: center;
	width: 100%;
}

/* ---- Layout ---- */
.layout { display: flex; max-width: 1024px; margin: 0 auto; }
aside { width: 20%; text-align: center; flex: none; }
main { width: 80%; background-color: #ffffff; color: #000000; }

/* ---- Navigation ---- */
nav { margin: 10px; padding: 10px 5px; text-align: center; }
nav ul { margin: 0; padding: 0; width: 100%; list-style-type: none; font-size: large; }
nav ul li a {
	background-color: darkblue;
	border-radius: 10px;
	color: #ffffff;
	display: block;
	margin-bottom: 10px;
	padding: 5px;
	text-decoration: none;
}
nav ul li a:hover, nav ul li a.current { background-color: grey; color: black; }
nav .nav-title { margin-top: 1em; }

/* ---- Inhalt ---- */
article {
	border: 1px solid grey;
	border-radius: 10px;
	margin: 12px 3px;
	padding: 9px 12px;
	overflow: hidden;
}

h1, h2, h3, h4 { color: darkblue; margin-top: 3px; margin-bottom: 6px; }
h2 { margin-top: 9px; }
p { margin-top: 6px; margin-bottom: 0; }
article ul, article ol { margin: 6px 0; padding-left: 1.5em; }
strong { color: darkblue; }
td { padding: 0 3px; }

/* Kasten mit gestricheltem Rand ("tz") */
.tz {
	background-color: #F7F7F7;
	border: 1px dashed silver;
	border-radius: 5px;
	font-style: italic;
	margin: 3px;
	padding: 3px 6px;
}
.tz.right { margin-left: 8px; }

/* Tabellen (z. B. Mitgliedsbeiträge) */
article table { border-collapse: collapse; margin: 6px 0; }
article table td, article table th { padding: 3px 12px 3px 3px; text-align: left; vertical-align: top; }
article table td:last-child { text-align: right; white-space: nowrap; }

/* ---- Nachrichten auf der Startseite ---- */
.news { margin: 0 0 14px 0; overflow: hidden; }
.news h3 { margin: 3px 0 6px 0; font-style: normal; }
.news h3 small { color: silver; font-weight: normal; font-size: 0.7em; }
.news .meta-date { color: silver; font-size: smaller; }
.news .bericht { float: right; margin: 3px; }
.news .bericht img { margin: 0; }
.news .thumb { float: right; margin: 3px 3px 3px 8px; }
.news .thumb img { margin: 0; display: block; }
.news .more { font-size: smaller; }
.news .links a { margin-right: 10px; font-size: smaller; }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.gallery a { display: block; }
.gallery img { margin: 0; display: block; }

/* ---- Abteilungsseiten ---- */
.gruppe { margin-top: 15px; }
.gruppe .gruppe-name { font-size: 13pt; color: darkblue; font-weight: bold; }
.gruppe-info .fl { color: silver; }
.gruppe-info .hinweis { color: red; }
.abt-leitung { text-align: left; }
.abt-links { margin: 6px 0 14px 0; }

/* ---- Vorstand ---- */
.personen { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px 0; }
.personen .tz { margin: 0; min-width: 220px; }

/* ---- Handy ---- */
@media (max-width: 640px) {
	.layout { display: block; }
	aside, main { width: 100%; }
	nav ul li a { margin-bottom: 6px; }
	.tz.right, .news .thumb { float: none; margin: 6px 0; }
	.news .thumb img { margin: 0 auto; }
}

/* ---- Druck ---- */
@media print {
	aside, .site-header, .site-footer { display: none; }
	main { width: 100%; }
	article { border: 0; }
	body { font-size: 11pt; }
}
