/* Menu panel on the right (Tmpl/partials/Navigation.html, VereinMenu.html; js/navigation.js), redesigned 2026-10-16.
   Colours: OGV green #6fb016 / #63a013 / #4f8a0f, dark text #24330f. Independent of tailwind.css. */

/* One corner radius for all buttons and boxes (owner 2026-10-16: the old square green buttons, barely rounded,
   never pills). Used by navigation.css and hero-slider.css; also applied to the old .button styles. */
:root {
	--ogv-radius: 3px;
}

.button {
	border-radius: var(--ogv-radius);
}

/* Menu toggle in the header (Header.html, HeaderWhite.html) */
.ogv-nav-toggle {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 10px;
	margin-left: auto; /* right edge of the header container */
	padding: 10px 16px;
	border: 0;
	border-radius: var(--ogv-radius);
	background: #6fb016;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ogv-nav-toggle .fa-bars {
	font-size: 1.25rem;
}

.ogv-nav-toggle:hover,
.ogv-nav-toggle[aria-expanded="true"] {
	background: #4f8a0f;
	box-shadow: 0 4px 12px rgba(79, 138, 15, 0.35);
}

.ogv-nav-toggle:focus-visible {
	outline: 3px solid #4f8a0f;
	outline-offset: 2px;
}

/* Phones: icon only (owner 2026-10-16); the label stays readable for screen readers */
@media (max-width: 767px) {
	.ogv-nav-toggle {
		gap: 0;
		padding: 10px 12px;
	}

	.ogv-nav-toggle-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

.ogv-nav {
	position: fixed;
	inset: 0;
	z-index: 10000;
	color: #24330f;
	font-family: 'Istok Web', sans-serif;
}

.ogv-nav[hidden] {
	display: none;
}

.ogv-nav svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ogv-nav a,
.ogv-nav a:hover,
.ogv-nav a:focus {
	text-decoration: none;
}

.ogv-nav :focus-visible {
	outline: 3px solid #6fb016;
	outline-offset: 2px;
}

/* Page lock while the menu is open */
html.ogv-nav-locked,
html.ogv-nav-locked body {
	overflow: hidden;
}

.ogv-nav-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 10, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ogv-nav-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(420px, 100%);
	background: #f5f8f0;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
	transform: translateX(100%);
	transition: transform 0.25s ease;
}

.ogv-nav.is-open .ogv-nav-backdrop {
	opacity: 1;
}

.ogv-nav.is-open .ogv-nav-panel {
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.ogv-nav-backdrop,
	.ogv-nav-panel {
		transition: none;
	}
}

/* Head: logo + close */
.ogv-nav-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px 14px 20px;
	border-bottom: 1px solid #e3ead9;
	background: #fff;
}

.ogv-nav-logo img {
	display: block;
	height: 40px;
	width: auto;
}

.ogv-nav-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--ogv-radius);
	background: #eef5e4;
	color: #365f0a;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.ogv-nav-close:hover {
	background: #dcebc8;
}

.ogv-nav-body {
	flex: 1;
	padding: 20px 20px 32px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.ogv-nav-section + .ogv-nav-section {
	margin-top: 28px;
}

.ogv-nav-heading {
	margin: 0 0 10px 4px;
	color: #5c7a34;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ogv-nav-heading label {
	margin: 0;
	font: inherit;
}

/* Main links */
.ogv-nav-links {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: var(--ogv-radius);
	background: #fff;
	box-shadow: 0 1px 3px rgba(36, 51, 15, 0.08);
	list-style: none;
}

.ogv-nav-links li + li {
	border-top: 1px solid #edf2e6;
}

.ogv-nav-links a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	color: #24330f;
	transition: background-color 0.15s ease;
}

.ogv-nav-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--ogv-radius);
	background: #eaf4dc;
	color: #4f8a0f;
}

.ogv-nav-icon i {
	font-size: 20px;
}

.ogv-nav-text strong {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.ogv-nav-text small {
	display: block;
	margin-top: 2px;
	color: #5f6f4b;
	font-size: 0.8125rem;
	line-height: 1.35;
}

.ogv-nav-chevron {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-left: auto;
	color: #9bb37a;
	transition: transform 0.15s ease, color 0.15s ease;
}

.ogv-nav-links a:hover,
.ogv-nav-links a:focus-visible {
	background: #f6faf0;
	color: #24330f;
}

.ogv-nav-links a:hover .ogv-nav-chevron {
	color: #4f8a0f;
	transform: translateX(3px);
}

.ogv-nav-links a.is-active {
	background: #f3f9ea;
	box-shadow: inset 4px 0 0 #6fb016;
}

.ogv-nav-links a.is-active .ogv-nav-icon {
	background: #6fb016;
	color: #fff;
}

/* Search */
.ogv-nav-search {
	position: relative;
	display: flex;
	align-items: center;
	border: 2px solid #dfe8d2;
	border-radius: var(--ogv-radius);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ogv-nav-search:focus-within {
	border-color: #6fb016;
	box-shadow: 0 0 0 4px rgba(111, 176, 22, 0.18);
}

.ogv-nav-search-icon {
	position: absolute;
	left: 14px;
	width: 22px;
	height: 22px;
	color: #8aa06a;
	pointer-events: none;
}

.ogv-nav-search input[type="search"] {
	flex: 1;
	min-width: 0;
	padding: 14px 8px 14px 46px;
	border: 0;
	background: transparent;
	color: #24330f;
	font-size: 1rem; /* 16px: no zoom on iOS */
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.ogv-nav-search input[type="search"]::placeholder {
	color: #8b9879;
}

.ogv-nav-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 4px;
	border: 0;
	border-radius: var(--ogv-radius);
	background: #6fb016;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ogv-nav-search button:hover {
	background: #5c9512;
}

.ogv-nav-search button svg {
	width: 20px;
	height: 20px;
}

.ogv-nav-search-hint {
	margin: 8px 4px 0;
	color: #6b7a57;
	font-size: 0.8125rem;
}

/* Target of "Mitglied werden" (footer form), below the fixed header */
#mitglied-werden {
	scroll-margin-top: 110px;
}

/* Verein card (pages of a Verein) */
.ogv-vereincard {
	margin: 0 0 28px;
	overflow: hidden;
	border-radius: var(--ogv-radius);
	background: #fff;
	color: #2c3e14;
	box-shadow: 0 4px 14px rgba(36, 51, 15, 0.12);
}

.ogv-vereincard-image {
	height: 120px;
	background-position: center;
	background-size: cover;
}

.ogv-vereincard-body {
	padding: 16px 20px 18px;
}

.ogv-vereincard-label {
	margin: 0;
	color: #5c7a34;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ogv-vereincard-title {
	margin: 2px 0 12px;
	color: #365f0a;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
}

.ogv-vereincard-links {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.ogv-vereincard-links a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 10px;
	border-radius: var(--ogv-radius);
	color: #2c3e14;
	font-weight: 600;
}

.ogv-vereincard-links a i {
	width: 18px;
	color: #63a013;
	text-align: center;
}

.ogv-vereincard-links a:hover,
.ogv-vereincard-links a:focus-visible {
	background: #f1f8e8;
	color: #2c3e14;
}

.ogv-vereincard-links a.is-active {
	background: #eaf4dc;
	color: #365f0a;
}

.ogv-vereincard-join,
.ogv-vereincard-join:hover {
	display: block;
	padding: 10px;
	border-radius: var(--ogv-radius);
	background: #63a013;
	color: #fff;
	font-weight: 700;
	text-align: center;
}

.ogv-vereincard-join:hover,
.ogv-vereincard-join:focus-visible {
	background: #4f8a0f;
}

.ogv-vereincard-all,
.ogv-vereincard-all:hover {
	display: inline-block;
	margin-top: 12px;
	color: #5c7a34;
	font-size: 0.875rem;
}
