/**
 * Frontend Styles für Vereinsregister
 */

.vr-container,
.vr-single-container,
.vr-directory {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.vr-directory *,
.vr-single-container *,
.vr-container * {
	box-sizing: border-box;
}

.vr-page-header,
.vr-single-header {
	margin-bottom: 2rem;
}

.vr-page-title,
.vr-single-title {
	margin: 0 0 0.75rem;
	line-height: 1.2;
}

.vr-directory__controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-start;
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
}

.vr-directory__search,
.vr-directory__filter {
	flex: 1 1 280px;
	min-width: 220px;
}

.vr-search-input,
.vr-filter-select {
	width: 100%;
	min-height: 44px;
	padding: 0.7rem 0.9rem;
	border: 1px solid #bfc3c8;
	border-radius: 8px;
	background: #fff;
	font-size: 1rem;
	line-height: 1.4;
}

.vr-search-input:focus,
.vr-filter-select:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.vr-directory__jump-nav {
	flex: 1 1 100%;
}

.vr-jump-nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vr-jump-nav-item {
	margin: 0;
	padding: 0;
}

.vr-jump-nav-button {
	min-width: 2.4rem;
	min-height: 2.4rem;
	padding: 0.45rem 0.65rem;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 0.95rem;
	line-height: 1;
	transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.vr-jump-nav-button:hover:not(:disabled),
.vr-jump-nav-button:focus-visible:not(:disabled) {
	border-color: #2271b1;
	background: #f0f6fc;
	outline: none;
}

.vr-jump-nav-button.is-active {
	border-color: #2271b1;
	background: #2271b1;
	color: #fff;
}

.vr-jump-nav-button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.vr-directory__results {
	position: relative;
}

.vr-directory__results.is-loading {
	opacity: 0.65;
	transition: opacity 0.2s ease;
}

.vr-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}

.vr-card {
	border: 1px solid #dcdcde;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.vr-card__content {
	padding: 1rem;
}

.vr-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	line-height: 1.3;
}

.vr-card__title a {
	text-decoration: none;
}

.vr-card__title a:hover,
.vr-card__title a:focus {
	text-decoration: underline;
}

.vr-card__type,
.vr-card__city,
.vr-card__link {
	margin: 0.35rem 0 0;
}

.vr-card__type {
	font-weight: 600;
}

.vr-card__city {
	color: #50575e;
}

.vr-card__button {
	display: inline-block;
	margin-top: 0.6rem;
	padding: 0.6rem 0.95rem;
	border: 1px solid #2271b1;
	border-radius: 8px;
	text-decoration: none;
	line-height: 1.2;
}

.vr-card__button:hover,
.vr-card__button:focus {
	background: #f0f6fc;
	text-decoration: none;
}

.vr-no-results {
	padding: 1rem 1.1rem;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
}

.vr-single-container {
	padding: 0;
}

.vr-single-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 300px);
	gap: 1.5rem;
	align-items: start;
	margin-bottom: 2rem;
}

.vr-single-type {
	font-weight: 600;
	color: #50575e;
}

.vr-single-logo {
	display: flex;
	justify-content: flex-end;
	align-items: flex-start;
}

.vr-logo {
	display: block;
	width: 100%;
	max-width: 280px;
	height: auto;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	background: #fff;
	padding: 0.75rem;
}

.vr-placeholder {
	object-fit: contain;
}

.vr-single-content {
	display: grid;
	gap: 2rem;
}

.vr-description,
.vr-gallery,
.vr-contact {
	padding: 1.25rem;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	background: #fff;
}

.vr-description > :first-child,
.vr-gallery > :first-child,
.vr-contact > :first-child {
	margin-top: 0;
}

.vr-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.vr-gallery-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	border: 1px solid #dcdcde;
	background: #fff;
}

.vr-contact-data p {
	margin: 0 0 1rem;
}

.vr-contact-data p:last-child {
	margin-bottom: 0;
}

.vr-email-wrapper {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.vr-email-button,
.vr-email-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.65rem 0.95rem;
	border-radius: 8px;
	line-height: 1.2;
}

.vr-email-button {
	border: 1px solid #2271b1;
	background: #fff;
	cursor: pointer;
}

.vr-email-button:hover,
.vr-email-button:focus {
	background: #f0f6fc;
}

.vr-email-link {
	border: 1px solid #dcdcde;
	background: #fff;
	text-decoration: none;
	word-break: break-word;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 900px) {
	.vr-single-header {
		grid-template-columns: 1fr;
	}

	.vr-single-logo {
		justify-content: flex-start;
	}

	.vr-logo {
		max-width: 220px;
	}
}

@media (max-width: 640px) {
	.vr-directory__controls {
		padding: 0.85rem;
	}

	.vr-card-grid,
	.vr-gallery-grid {
		grid-template-columns: 1fr;
	}

	.vr-description,
	.vr-gallery,
	.vr-contact {
		padding: 1rem;
	}
}

.vr-card__content {
	position: relative;
	padding: 1rem;
	min-height: 200px;
}

.vr-card__main {
	padding-right: 90px;
}

.vr-card__logo {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
	padding: 6px;
	overflow: hidden;
}

.vr-card__logo-image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}