/*
Theme Name: Sagel Familienforschung
Theme URI: https://www.sagel.de
Author: Martin Sagel
Description: Theme im Layout der klassischen sagel.de-Seite (Frameset-Nachbau: linke Navigationsspalte + Inhaltsbereich), mit modernem WordPress-Unterbau.
Version: 1.0
Requires PHP: 7.4
Text Domain: sagel
*/

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: #ffffff url('assets/img/buch.jpg') repeat;
	font-family: Verdana, Geneva, sans-serif;
	color: #000000;
	font-size: 13px;
}

a { color: #000000; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; border: 0; }

.sagel-wrap {
	display: flex;
	align-items: flex-start;
	max-width: 1200px;
	margin: 0 auto;
	/* background: #ffffff; */
	min-height: 100vh;
	/* box-shadow: 0 0 12px rgba(0,0,0,0.25); */
}

/* ---------- Left menu column ---------- */
.sagel-menu {
	width: 190px;
	flex: 0 0 190px;
	/* background: url('assets/img/menback.gif') repeat-y; */
	/* border-right: 1px solid #000; */
}

.sagel-menu .logo {
	text-align: center;
	background: url('assets/img/buch.jpg') repeat;
	padding: 4px 0;
}

.sagel-menu .logo img { width: 100%; max-width: 190px; }

.sagel-menu .sep img { display: block; width: 100%; height: 3px; }

.sagel-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sagel-menu li { margin: 0; padding: 0; }

.sagel-menu a.navlink {
	display: flex;
	align-items: center;
	gap: 6px;
	background: url('assets/img/tabback.gif') repeat;
	color: #000000;
	font-weight: bold;
	font-size: 15px;
	padding: 4px 6px;
	min-height: 35px;
}

.sagel-menu a.navlink:hover { background-color: #AFBEC9; text-decoration: none; }
.sagel-menu a.navlink.current { background-color: #336699; color: #ffffff; }

.sagel-menu a.navlink img { width: 30px; height: 30px; flex: 0 0 auto; }

.sagel-menu .crest {
	text-align: center;
	padding: 10px 8px;
}

.sagel-menu .crest img { max-width: 140px; }

.sagel-menu .socialmini { text-align: center; padding: 6px 4px 14px; }
.sagel-menu .socialmini a { display: inline-block; margin: 2px; }
.sagel-menu .socialmini img { height: 20px; width: auto; }

/* ---------- Main content column ---------- */
.sagel-main {
	flex: 1 1 auto;
	min-width: 0;
	padding: 18px 24px 40px;
}

.sagel-title {
	color: #336699;
	font-size: 22px;
	font-weight: bold;
	text-align: center;
	margin: 0 0 16px;
}

.sagel-panel {
	border: 1px solid #000000;
	margin: 0 0 18px;
}

.sagel-panel .panel-head {
	background: #336699;
	color: #C0C0C0;
	font-weight: bold;
	font-size: 15px;
	text-align: center;
	padding: 4px 8px;
}

.sagel-panel .panel-body {
	background: url('assets/img/htmlbck.png') repeat;
	padding: 10px;
}

.sagel-content { line-height: 1.5; }
.sagel-content table { border-collapse: collapse; max-width: 100%; }
.sagel-content hr { border: none; border-top: 1px solid #999; margin: 14px 0; }

.sagel-footer {
	text-align: center;
	font-size: 11px;
	color: #333;
	padding: 20px 10px 30px;
	border-top: 1px solid #ccc;
	margin-top: 20px;
}

.sagel-footer a { color: #336699; }

/* Gallery grid for legacy folder browser */
.sagel-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin: 14px 0;
}

.sagel-gallery-grid figure {
	margin: 0;
	background: #fff;
	border: 1px solid #ccc;
	padding: 6px;
	text-align: center;
}

.sagel-gallery-grid img {
	max-width: 100%;
	max-height: 140px;
	object-fit: contain;
}

.sagel-gallery-grid figcaption {
	font-size: 10px;
	color: #336699;
	word-break: break-word;
	margin-top: 4px;
}

.sagel-folder-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 20px;
}

.sagel-folder-list a {
	background: #336699;
	color: #fff;
	padding: 6px 12px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: bold;
}

.sagel-breadcrumb { font-size: 11px; margin-bottom: 10px; color: #555; }
.sagel-breadcrumb a { color: #336699; }

@media (max-width: 700px) {
	.sagel-wrap { flex-direction: column; }
	.sagel-menu { width: 100%; flex: 0 0 auto; }
	.sagel-menu ul { display: flex; flex-wrap: wrap; }
	.sagel-menu li { flex: 1 1 33%; }
}
