/* Template 7477 - lean custom styling on top of templatestyle.css/genstyle.css */

:root{
	--t7477-green:#315f52;
	--t7477-green-dark:#21483e;
	--t7477-bg:#f6f3ec;
	--t7477-card:#fffdf8;
	--t7477-text:#18231f;
	--t7477-muted:#64706b;
	--t7477-line:rgba(49,95,82,.16);
}

html, body { background: var(--t7477-bg); color: var(--t7477-text); }
body, p, li, td, th, input, textarea, select { font-family: 'Open Sans', Verdana, Helvetica, Arial, sans-serif; }
h1, h2, h3, h4 { font-family: 'Oswald', Arial, Helvetica, sans-serif; font-weight: 500; }

/* ---------- Header ---------- */
.t7477-header {
	background: rgba(246,243,236,.97);
	border-bottom: 1px solid var(--t7477-line);
}
.t7477-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	width: min(1180px, calc(100% - 36px));
	margin: auto;
	padding: 16px 0;
}
.t7477-brand,
.t7477-brand:visited,
.t7477-brand:active {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--t7477-text) !important;
	text-decoration: none !important;
}
.t7477-brand img { height: 40px; width: auto; }
.t7477-brand span {
	font-family: 'Oswald', Arial, Helvetica, sans-serif;
	font-size: 22px;
	font-weight: 500;
}

.t7477-header-action-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.t7477-header-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.t7477-header-button,
.t7477-header-button:visited,
.t7477-header-button:active,
.t7477-header-button:focus {
	display: inline-flex !important;
	align-items: center;
	padding: 9px 20px !important;
	border: 1px solid var(--t7477-line);
	border-radius: 999px;
	background: #fff;
	color: var(--t7477-green) !important;
	font-family: 'Open Sans', Verdana, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	text-transform: none !important;
}
.t7477-header-button:hover { background: var(--t7477-green); color: #fff !important; }

/* The "Zurück zur Hauptseite" button - always the rightmost, filled solid */
.t7477-header-button--solid,
.t7477-header-button--solid:visited,
.t7477-header-button--solid:active,
.t7477-header-button--solid:focus {
	background: var(--t7477-green);
	border-color: var(--t7477-green);
	color: #fff !important;
}
.t7477-header-button--solid:hover {
	background: var(--t7477-green-dark);
	border-color: var(--t7477-green-dark);
}

/* ---------- Dropdown nav bar (Suchen/Medien/Info, generated by tng_icons()) ---------- */
.t7477-nav { background: var(--t7477-green); }
.t7477-nav-inner { width: min(1180px, calc(100% - 36px)); margin: auto; }
.t7477-nav .nav-menu { width: 100%; height: auto; margin: 0; padding: 0; float: none !important; }
.t7477-nav ul.tngdd .menulink,
.t7477-nav .nav-menu a {
	min-height: 46px;
	padding: 13px 18px 12px 20px;
	color: #fff;
	font-family: 'Open Sans', Verdana, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-transform: none;
}
.t7477-nav ul.tngdd .menuhover,
.t7477-nav .nav-menu a:hover { background-color: var(--t7477-green-dark) !important; }

/* ---------- Login card ---------- */
.t7477-content-wrap { width: min(900px, calc(100% - 36px)); margin: auto; }
.t7477-home {
	display: flex;
	min-height: calc(100vh - 260px);
	align-items: center;
	justify-content: center;
	padding: clamp(2rem, 6vw, 5rem) 0;
}
.t7477-home-card {
	width: min(680px, 100%);
	padding: clamp(2rem, 5vw, 3.5rem);
	border: 1px solid var(--t7477-line);
	border-radius: 24px;
	background: var(--t7477-card);
	box-shadow: 0 20px 55px rgba(20,38,33,.10);
	text-align: center;
}
.t7477-home h1 {
	margin: 0;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 600;
}
.t7477-subtitle { margin: .8rem 0 0; color: var(--t7477-muted); font-size: 1rem; }
.t7477-home-text { margin: 1.2rem 0 0; color: var(--t7477-muted); line-height: 1.6; }
.t7477-home-actions { margin-top: 1.6rem; }
.t7477-button,
.t7477-button:visited,
.t7477-button:active,
.t7477-button:focus {
	display: inline-flex;
	min-width: 170px;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--t7477-green);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}
.t7477-button:hover { background: var(--t7477-green-dark); }

/* ---------- Footer ---------- */
.t7477-footer { border-top: 1px solid var(--t7477-line); background: var(--t7477-bg); }
.t7477-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	width: min(1180px, calc(100% - 36px));
	margin: auto;
	padding: 22px 0;
	color: var(--t7477-muted);
	font-size: 13px;
}
.t7477-footer-brand a,
.t7477-footer-brand a:visited,
.t7477-footer-brand a:active {
	color: var(--t7477-text) !important;
	font-weight: 600;
	text-decoration: none !important;
}
.t7477-footer-tng,
.t7477-footer-tng a,
.t7477-footer-tng a:visited,
.t7477-footer-tng a:active {
	color: var(--t7477-muted) !important;
}
.t7477-footer-tng a:hover { color: var(--t7477-text) !important; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media only screen and (max-width: 767px) {
	.t7477-header-inner { flex-direction: column; align-items: flex-start; }
	.t7477-footer-inner { flex-direction: column; align-items: flex-start; }
}
