/* =====================================================================
   Förderverein Team Uhlenhorst e.V. – Joomla Template
   Corporate Design: Purpur #70276E · Grün #007E46
   ===================================================================== */

:root {
	--uh-primary:   #70276E; /* Purpur */
	--uh-secondary: #007E46; /* Grün   */
	--uh-primary-dark:   #561e55;
	--uh-secondary-dark: #006138;
	--uh-primary-tint:   #f4eef3;
	--uh-secondary-tint: #ecf5f0;
	--uh-ink:   #212529;
	--uh-muted: #5b6066;
	--uh-line:  #e3e6ea;
	--uh-bg:    #ffffff;
	--uh-bg-soft: #f6f7f9;
	--uh-accent: #EAE879; /* Eulen-Gelb */
	--uh-blue:   #1F6297;
	--uh-radius: 12px;
	--uh-radius-sm: 8px;
	--uh-shadow: 0 2px 10px rgba(33,37,41,.07);
	--uh-shadow-lg: 0 10px 30px rgba(33,37,41,.12);
	--uh-container: 1180px;
	--uh-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--uh-font-head: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site {
	margin: 0;
	font-family: var(--uh-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--uh-ink);
	background: var(--uh-bg);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--uh-primary); text-decoration: none; }
a:hover, a:focus { color: var(--uh-primary-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--uh-font-head);
	color: var(--uh-primary);
	line-height: 1.22;
	margin: 0 0 .6em;
	font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.35rem; color: var(--uh-secondary); }

p { margin: 0 0 1rem; }

hr { border: 0; height: 2px; background: var(--uh-line); margin: 2rem 0; }

/* ---------- Layout helpers ---------- */
.uh-container {
	width: 100%;
	max-width: var(--uh-container);
	margin-inline: auto;
	padding-inline: 20px;
}

.uh-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--uh-primary);
	color: #fff;
	padding: 10px 16px;
	z-index: 1000;
	border-radius: 0 0 var(--uh-radius-sm) 0;
}
.uh-skip-link:focus { left: 0; color:#fff; }

/* ---------- Header ---------- */
.uh-header {
	background: #fff;
	border-bottom: 4px solid transparent;
	border-image: linear-gradient(90deg, var(--uh-primary) 0 50%, var(--uh-secondary) 50% 100%) 1;
	box-shadow: var(--uh-shadow);
}
body.sticky-header .uh-header {
	position: sticky;
	top: 0;
	z-index: 900;
}
.uh-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-block: 14px;
}
.uh-brand {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	color: inherit;
	text-decoration: none;
	margin-right: auto;
}
.uh-brand:hover { text-decoration: none; }
.uh-brand__logo {
	width: 110px;
	height: 110px;
	flex: none;
	transition: width .2s ease, height .2s ease;
}
.uh-brand__text { display: flex; flex-direction: column; line-height: 1.15; padding-top: 2px; }
.uh-brand__title {
	font-family: var(--uh-font-head);
	font-weight: 700;
	font-size: clamp(1.15rem, .9rem + 1.1vw, 1.7rem);
	color: var(--uh-primary);
	letter-spacing: .2px;
}
.uh-brand__subtitle {
	font-size: clamp(.85rem, .78rem + .3vw, 1.05rem);
	color: var(--uh-secondary);
	font-weight: 600;
}
.uh-header__search { max-width: 240px; }

/* ---------- Navigation ---------- */
.uh-nav {
	background: var(--uh-primary);
	background: linear-gradient(90deg, var(--uh-primary), var(--uh-primary-dark));
}
.uh-nav .uh-container { padding-block: 0; }
.uh-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}
.uh-nav li { position: relative; }
.uh-nav a {
	display: block;
	padding: 14px 13px; white-space: nowrap; font-size: 16px;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 3px solid transparent;
}
.uh-nav a:hover,
.uh-nav a:focus,
.uh-nav .current > a,
.uh-nav .active > a {
	background: rgba(255,255,255,.12);
	border-bottom-color: var(--uh-accent);
	color: #fff;
}
/* Dropdowns */
.uh-nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--uh-primary-dark);
	flex-direction: column;
	box-shadow: var(--uh-shadow-lg);
	z-index: 950;
	border-top: 3px solid var(--uh-secondary);
}
.uh-nav li:hover > ul,
.uh-nav li:focus-within > ul { display: flex; }
.uh-nav ul ul a { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.uh-nav ul ul a:hover { border-bottom-color: rgba(255,255,255,.08); background: rgba(255,255,255,.14); }

/* Hamburger */
.uh-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	width: 46px;
	height: 42px;
	padding: 9px;
	background: var(--uh-primary);
	border: 0;
	border-radius: var(--uh-radius-sm);
	cursor: pointer;
}
.uh-nav-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: .25s; }
.uh-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.uh-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.uh-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Banner / Hero ---------- */
.uh-banner { background: var(--uh-bg-soft); }
.uh-banner img { width: 100%; display: block; }

/* ---------- Sections (top / bottom module rows) ---------- */
.uh-top, .uh-bottom { padding-block: 32px; }
.uh-bottom { background: var(--uh-bg-soft); border-top: 1px solid var(--uh-line); }
.uh-top__inner, .uh-bottom__inner {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- Main grid ---------- */
.uh-main { padding-block: 28px 40px; }
.uh-breadcrumbs {
	font-size: .9rem;
	color: var(--uh-muted);
	margin-bottom: 18px;
}
.uh-breadcrumbs a { color: var(--uh-secondary); }
.uh-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }

.uh-grid { display: grid; gap: 32px; align-items: start; }
.has-none-sidebar .uh-grid  { grid-template-columns: 1fr; }
.has-right-sidebar .uh-grid { grid-template-columns: minmax(0,1fr) 320px; }
.has-left-sidebar .uh-grid  { grid-template-columns: 320px minmax(0,1fr); }
.has-left-sidebar .uh-content { order: 2; }
.has-both-sidebar .uh-grid  { grid-template-columns: 300px minmax(0,1fr) 300px; }
.has-both-sidebar .uh-sidebar--left { order: 1; }
.has-both-sidebar .uh-content { order: 2; }
.has-both-sidebar .uh-sidebar--right { order: 3; }

.uh-content { min-width: 0; }

/* ---------- Cards / modules ---------- */
.card, .uh-sidebar .card, .uh-top .card, .uh-bottom .card {
	background: #fff;
	border: 1px solid var(--uh-line);
	border-radius: var(--uh-radius);
	box-shadow: var(--uh-shadow);
	margin-bottom: 24px;
	overflow: hidden;
}
.card .card-header,
.card > h3:first-child,
.moduletable > h3,
.moduletable > .card-header {
	background: var(--uh-secondary);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0;
	padding: 12px 18px;
}
.card .card-body { padding: 18px; }
.moduletable { margin-bottom: 24px; }
.uh-sidebar .moduletable > h3 { border-radius: var(--uh-radius) var(--uh-radius) 0 0; }

/* alternate accent for every 2nd sidebar module header */
.uh-sidebar .moduletable:nth-child(even) > h3,
.uh-sidebar .card:nth-child(even) .card-header { background: var(--uh-primary); }

/* ---------- Menu modules inside content/sidebar ---------- */
.uh-sidebar .mod-menu, .uh-sidebar ul.nav { list-style: none; margin: 0; padding: 0; }
.uh-sidebar .mod-menu li a {
	display: block;
	padding: 10px 14px;
	border-bottom: 1px solid var(--uh-line);
	color: var(--uh-ink);
}
.uh-sidebar .mod-menu li a:hover { background: var(--uh-primary-tint); color: var(--uh-primary); text-decoration: none; }
.uh-sidebar .mod-menu .current > a { color: var(--uh-primary); font-weight: 700; border-left: 4px solid var(--uh-secondary); }

/* ---------- Article content ---------- */
.uh-content .page-header h1,
.uh-content .page-header h2 {
	border-bottom: 3px solid var(--uh-secondary);
	padding-bottom: .35em;
}
.item-image img, .article-featured-image img { border-radius: var(--uh-radius); }
blockquote {
	border-left: 4px solid var(--uh-primary);
	background: var(--uh-primary-tint);
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-radius: 0 var(--uh-radius-sm) var(--uh-radius-sm) 0;
}
ul, ol { padding-left: 1.3rem; }
table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; }
th, td { border: 1px solid var(--uh-line); padding: 10px 12px; text-align: left; }
thead th { background: var(--uh-primary); color: #fff; }
tbody tr:nth-child(even) { background: var(--uh-bg-soft); }

/* ---------- Buttons ---------- */
.uh-btn, .btn-primary, a.btn-primary, button.btn-primary,
.readmore a, .btn.readmore {
	display: inline-block;
	background: var(--uh-primary);
	color: #fff !important;
	border: 2px solid var(--uh-primary);
	padding: 10px 22px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: .2s;
}
.uh-btn:hover, .btn-primary:hover, .readmore a:hover {
	background: var(--uh-primary-dark);
	border-color: var(--uh-primary-dark);
	text-decoration: none;
	color: #fff !important;
}
.btn-secondary, a.btn-secondary {
	display: inline-block;
	background: var(--uh-secondary);
	color: #fff !important;
	border: 2px solid var(--uh-secondary);
	padding: 10px 22px;
	border-radius: 999px;
	font-weight: 700;
}
.btn-secondary:hover { background: var(--uh-secondary-dark); border-color: var(--uh-secondary-dark); }

/* Forms */
input[type=text], input[type=email], input[type=password], input[type=search],
input[type=tel], input[type=url], textarea, select, .form-control {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--uh-line);
	border-radius: var(--uh-radius-sm);
	font: inherit;
	background: #fff;
}
input:focus, textarea:focus, select:focus, .form-control:focus {
	outline: none;
	border-color: var(--uh-secondary);
	box-shadow: 0 0 0 3px rgba(0,126,70,.18);
}

/* Constrain inline SVG icons (e.g. WebAuthn passkey button in the login module) */
button svg, .btn svg, a.btn svg { width: 1.1em; height: 1.1em; vertical-align: -0.125em; }
.mod-login svg, .login svg { width: 1.25rem; height: 1.25rem; }
.mod-login img, .login img { width: auto; max-height: 2.5rem; }

/* System messages */
.alert { border-radius: var(--uh-radius-sm); padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--uh-line); }
.alert-success { background: var(--uh-secondary-tint); border-color: var(--uh-secondary); color: var(--uh-secondary-dark); }
.alert-danger, .alert-error { background: #fdecec; border-color: #d9534f; color: #a02622; }
.alert-info { background: var(--uh-primary-tint); border-color: var(--uh-primary); color: var(--uh-primary-dark); }

/* ---------- Footer ---------- */
.uh-footer {
	background: var(--uh-primary);
	color: #fff;
	border-top: 5px solid var(--uh-secondary);
	margin-top: 40px;
}
.uh-footer__inner { padding-block: 34px; }
.uh-footer a { color: #fff; text-decoration: underline; }
.uh-footer a:hover { color: var(--uh-accent); }
.uh-footer h3, .uh-footer .card-header { background: transparent; color: var(--uh-accent); padding: 0 0 .4em; }
.uh-footer .card, .uh-footer .moduletable { background: transparent; border: 0; box-shadow: none; }
.uh-footer__modules {
	display: grid;
	gap: 28px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	margin-bottom: 24px;
}
.uh-footer__meta {
	border-top: 1px solid rgba(255,255,255,.2);
	padding-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: .92rem;
	align-items: center;
}
.uh-footer__sub { color: var(--uh-accent); }

/* ---------- Back to top ---------- */
.uh-backtop {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	background: var(--uh-secondary);
	color: #fff !important;
	border-radius: 50%;
	font-size: 1.4rem;
	box-shadow: var(--uh-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: .25s;
	z-index: 800;
	text-decoration: none;
}
.uh-backtop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.uh-backtop:hover { background: var(--uh-secondary-dark); }

/* ---------- Error / Offline pages ---------- */
.uh-errorpage {
	margin: 0;
	min-height: 100vh;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--uh-primary-tint), var(--uh-secondary-tint));
	font-family: var(--uh-font);
	padding: 24px;
}
.uh-error {
	background: #fff;
	max-width: 560px;
	width: 100%;
	text-align: center;
	padding: 40px 32px;
	border-radius: var(--uh-radius);
	box-shadow: var(--uh-shadow-lg);
	border-top: 6px solid var(--uh-secondary);
}
.uh-error__brand img { width: 120px; height: 120px; }
.uh-error__code {
	font-size: 4.5rem;
	font-weight: 800;
	line-height: 1;
	color: var(--uh-primary);
	margin: 8px 0;
}
.uh-error__title { color: var(--uh-secondary); font-size: 1.4rem; }
.uh-error__text { color: var(--uh-muted); }
.uh-error__debug { text-align: left; margin-top: 20px; font-size: .85rem; color: var(--uh-muted); overflow: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.has-right-sidebar .uh-grid,
	.has-left-sidebar .uh-grid,
	.has-both-sidebar .uh-grid { grid-template-columns: 1fr; }
	.has-left-sidebar .uh-content,
	.has-both-sidebar .uh-content { order: 0; }
}

@media (max-width: 768px) {
	body.site { font-size: 16px; }
	.uh-brand__logo { width: 84px; height: 84px; }
	.uh-header__search { display: none; }
	.uh-nav-toggle { display: flex; margin-left: auto; }

	.uh-nav {
		display: none;
	}
	.uh-nav.is-open { display: block; }
	.uh-nav ul { flex-direction: column; }
	.uh-nav a { border-bottom: 1px solid rgba(255,255,255,.12); }
	.uh-nav ul ul {
		position: static;
		box-shadow: none;
		border-top: 0;
		background: rgba(0,0,0,.15);
	}
	.uh-nav li:hover > ul,
	.uh-nav li:focus-within > ul { display: none; }
	.uh-nav li.is-open > ul { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; }
}


/* =====================================================================
   Vereins-Eule – rechts unter der grünen Linie der Seitenüberschrift
   ===================================================================== */
.page-header { position: relative; }
.page-header h1 { margin-bottom: 0; }
.page-header::after {
	content: "";
	display: block;
	width: 101px;
	height: 84px;
	margin: .55rem 0 .25rem auto;
	background: url(/images/owl-team-uhlenhorst.png) no-repeat right center;
	background-size: contain;
}
@media (max-width: 575.98px) {
	.page-header::after { width: 101px; height: 84px; }
}
