/**
 * Derbys – Frontend Übersicht.
 */

.ff-content-wrap:has(> main.ff-main.ff-derbys-page) {
	background: #fff !important;
}

body.ff-page-derbys {
	background: #fff !important;
}

body.ff-page-derbys .site-content,
body.ff-page-derbys .content-area,
body.ff-page-derbys .site {
	background: #fff !important;
	padding-top: 0 !important;
}

main.ff-main.ff-derbys-page {
	max-width: 100% !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 18px 0 0 !important;
	box-sizing: border-box;
	background: #fff;
	overflow-x: hidden;
	min-height: calc(100dvh + 150px);
}

.ff-derbys-wrap {
	width: 100%;
	max-width: 1000px;
	min-width: 0;
	margin: 0 auto;
	padding: 0 16px 200px;
	box-sizing: border-box;
}

.ff-derbys-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 34px;
}

.ff-derbys-title {
	margin: 0 0 24px;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	font-size: 25px;
	line-height: 100%;
	letter-spacing: 0.005em;
	text-align: center;
	color: #000;
}

.ff-derbys-intro {
	width: 570px;
	max-width: 100%;
	min-height: 190px;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 100%;
	letter-spacing: 0;
	text-align: left;
	color: #000;
	opacity: 1;
}

.ff-derbys-intro p {
	margin: 0;
	font: inherit;
	line-height: inherit;
	letter-spacing: inherit;
}

.ff-derbys-page .ff-derbys-search {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 0;
	margin-bottom: 56px;
}

.ff-derbys-page .ff-vereine-search-box {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 10px;
	width: 335px;
	max-width: 100%;
	height: 29px;
	padding: 0 6px;
	box-sizing: border-box;
	background: #fff;
	border: 0.8px solid #cecece;
	border-radius: 2px;
	box-shadow: none;
}

.ff-derbys-page .ff-vereine-search-icon {
	flex: none;
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #7b7b7b;
}

.ff-derbys-page .ff-vereine-search-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

.ff-derbys-page .ff-vereine-search-input {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 100%;
	color: #000;
}

.ff-derbys-page .ff-vereine-search-input::placeholder {
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-weight: 300;
	font-size: 13px;
	color: #7b7b7b;
}

.ff-derbys-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 50px 40px;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	box-sizing: border-box;
}

.ff-derbys-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	min-width: 0;
}

.ff-derbys-card-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	width: 100%;
}

.ff-derbys-page a.ff-derbys-card-link,
.ff-derbys-page a.ff-derbys-card-link:visited {
	color: inherit;
	text-decoration: none;
}

.ff-derbys-page a.ff-derbys-card-link:hover .ff-derbys-card-title,
.ff-derbys-page a.ff-derbys-card-link:focus-visible .ff-derbys-card-title {
	color: #b43526;
}

.ff-derbys-card-logos {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 49px;
	flex: none;
}

.ff-derbys-card-logo {
	position: relative;
	display: block;
	flex: none;
	width: 50px;
	height: 49px;
	object-fit: contain;
	object-position: center;
}

.ff-derbys-card-logo--left {
	z-index: 1;
}

.ff-derbys-card-logo--right {
	margin-left: -20px;
	z-index: 2;
}

.ff-derbys-card-logo-placeholder {
	background: #000;
}

.ff-derbys-card-title {
	margin: 0;
	padding: 0;
	width: 100%;
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.1;
	letter-spacing: 0;
	text-align: center;
	color: #000;
}

.ff-derbys-card-actions {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.ff-derbys-page .ff-derbys-card-mitteilungen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 17px;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	cursor: default;
	line-height: 0;
	color: #000;
	flex: none;
}

.ff-derbys-page .ff-derbys-card-fav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 17px;
	line-height: 0;
	margin: 0;
}

.ff-derbys-page .ff-derbys-card-mitteilungen svg,
.ff-derbys-page .ff-derbys-card-fav svg {
	width: 18px;
	height: 17px;
	display: block;
	flex-shrink: 0;
}

.ff-derbys-page .ff-derbys-card-fav {
	margin: 0;
	width: 18px;
	height: 17px;
	color: #000;
	opacity: 1;
}

.ff-derbys-page .ff-derbys-card-fav path {
	stroke: currentColor;
}

html body.ff-page-derbys #main .ff-derbys-card-actions .ff-derbys-card-fav,
html body.ff-page-derbys #main .ff-derbys-card-actions .ff-derbys-card-fav svg,
html body.ff-page-derbys #main .ff-derbys-card-actions .ff-derbys-card-fav path {
	opacity: 1 !important;
	color: #000 !important;
	stroke: #000 !important;
}

.ff-derbys-card.is-page-hidden {
	display: none !important;
}

.ff-derbys-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 40px 0 8px;
	padding: 0;
}

.ff-derbys-page nav.ff-derbys-pagination > a.ff-derbys-pagination__num,
.ff-derbys-page nav.ff-derbys-pagination > span.ff-derbys-pagination__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	min-width: 36px;
	height: 36px;
	padding: 0;
	box-sizing: border-box;
	border: 1px solid #b43526;
	border-radius: 0;
	background: #fff;
	color: #b43526;
	text-decoration: none;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	font-size: 17px;
	line-height: 100%;
	letter-spacing: 0.005em;
}

.ff-derbys-page nav.ff-derbys-pagination > span.ff-derbys-pagination__num.is-active {
	background: #b43526;
	color: #fff;
	border-color: #b43526;
}

.ff-derbys-page nav.ff-derbys-pagination > a.ff-derbys-pagination__num:visited {
	color: #b43526;
	text-decoration: none;
}

.ff-derbys-page nav.ff-derbys-pagination > a.ff-derbys-pagination__num:hover,
.ff-derbys-page nav.ff-derbys-pagination > a.ff-derbys-pagination__num:focus {
	background: #b43526;
	color: #fff;
	border-color: #b43526;
	text-decoration: none;
}

.ff-derbys-page nav.ff-derbys-pagination > a.ff-derbys-pagination__arrow,
.ff-derbys-page nav.ff-derbys-pagination > span.ff-derbys-pagination__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0 4px;
	border: none;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #b43526;
	text-decoration: none;
	line-height: 0;
}

.ff-derbys-page nav.ff-derbys-pagination > a.ff-derbys-pagination__arrow svg,
.ff-derbys-page nav.ff-derbys-pagination > span.ff-derbys-pagination__arrow svg {
	display: block;
	width: 7px;
	height: 12px;
}

.ff-derbys-page nav.ff-derbys-pagination > a.ff-derbys-pagination__arrow path,
.ff-derbys-page nav.ff-derbys-pagination > span.ff-derbys-pagination__arrow path {
	stroke: currentColor;
}

.ff-derbys-page nav.ff-derbys-pagination > span.ff-derbys-pagination__arrow.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.ff-derbys-page nav.ff-derbys-pagination > span.ff-derbys-pagination__dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	width: auto;
	height: 36px;
	padding: 0 2px;
	border: none;
	background: transparent;
	color: #b43526;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	font-size: 17px;
	line-height: 100%;
}

.ff-derbys-page nav.ff-derbys-pagination > .ff-derbys-pagination__arrow--prev {
	transform: rotate(180deg);
}

.ff-derbys-page nav.ff-derbys-pagination > a.ff-derbys-pagination__arrow:hover,
.ff-derbys-page nav.ff-derbys-pagination > a.ff-derbys-pagination__arrow:focus {
	opacity: 0.65;
	background: transparent;
	border: none;
	text-decoration: none;
}

.ff-derbys-pagination.is-hidden {
	display: none !important;
}

.ff-derbys-no-results {
	margin: 0;
	text-align: center;
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-size: 15px;
	color: #7b7b7b;
}

.ff-derbys-card.is-hidden {
	display: none !important;
}

/* ==========================================================================
   Detailseite einer Paarung (?derby=slug)
   ========================================================================== */

.ff-derbys-detail-head {
	width: 100%;
	max-width: 100%;
	margin: 0 0 clamp(20px, 3vw, 30px);
	text-align: left;
	box-sizing: border-box;
}

.ff-derbys-detail-title-row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px 20px;
	width: 100%;
	margin-bottom: 18px;
}

.ff-derbys-detail-title {
	margin: 0;
	width: 332px;
	max-width: 100%;
	min-height: 48px;
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-weight: 600;
	font-size: clamp(28px, 5vw, 40px);
	line-height: 100%;
	letter-spacing: 0;
	color: #000;
}

.ff-derbys-detail-actions {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	flex: none;
	margin-top: 6px;
}

.ff-derbys-page .ff-derbys-detail-mitteilungen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 17px;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	box-shadow: none;
	cursor: default;
	line-height: 0;
	color: #000;
	flex: none;
}

.ff-derbys-page .ff-derbys-detail-fav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 17px;
	margin: 0;
	line-height: 0;
	color: #000;
	opacity: 1;
}

.ff-derbys-page .ff-derbys-detail-mitteilungen svg,
.ff-derbys-page .ff-derbys-detail-fav svg {
	display: block;
	width: 18px;
	height: 17px;
	flex-shrink: 0;
}

.ff-derbys-page .ff-derbys-detail-fav path {
	stroke: currentColor;
}

/* Tabs wie auf der Vereins-Unterseite: 2px Unterstrich, kein Hover-Overlay. */
.ff-derbys-detail-nav {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: flex-start;
	gap: 10px 24px;
	width: 100%;
	max-width: 100%;
	padding-bottom: 0;
	background: none;
}

.ff-derbys-page a.ff-derbys-detail-nav-link,
.ff-derbys-page a.ff-derbys-detail-nav-link:visited {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: max-content;
	max-width: 100%;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-weight: 500;
	font-size: 15px;
	line-height: 24px;
	letter-spacing: 0;
	white-space: nowrap;
	color: #000;
	text-decoration: none !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	background: transparent none !important;
	box-shadow: none !important;
}

.ff-derbys-page a.ff-derbys-detail-nav-link:hover,
.ff-derbys-page a.ff-derbys-detail-nav-link.is-active {
	color: #000 !important;
	background: transparent none !important;
	box-shadow: none !important;
	border-bottom-color: #b43526 !important;
}

.ff-derbys-page a.ff-derbys-detail-nav-link:focus-visible {
	outline: 2px solid #b43526;
	outline-offset: 2px;
}

/* Hero: 1000×323, vorerst ohne Bild – nur Rahmen und die beiden Logos. */
.ff-derbys-detail-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1000px;
	max-width: 100%;
	height: 323px;
	margin: 0 0 clamp(24px, 4vw, 40px);
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #cecece;
	overflow: hidden;
}

.ff-derbys-detail-hero-logos {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

.ff-derbys-detail-hero-logo {
	position: relative;
	display: block;
	flex: none;
	width: 150px;
	height: 147px;
	object-fit: contain;
	object-position: center;
}

.ff-derbys-detail-hero-logo--left {
	z-index: 1;
}

.ff-derbys-detail-hero-logo--right {
	margin-left: -30px;
	z-index: 2;
}

.ff-derbys-detail .ff-derbys-detail-feed {
	margin: 0;
}

.ff-derbys-detail-pagination {
	margin-top: 40px;
}

.ff-derbys-detail-empty {
	margin: 0;
	padding: 40px 0;
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-size: 16px;
	color: #646464;
}

.ff-derbys-page a.ff-derbys-detail-back {
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-size: 16px;
	color: #b43526;
}

@media (max-width: 1024px) {
	.ff-derbys-detail-hero {
		height: auto;
		aspect-ratio: 1000 / 323;
	}
}

@media (max-width: 640px) {
	.ff-derbys-detail-title-row {
		gap: 10px 12px;
	}

	.ff-derbys-detail-hero-logo {
		width: 96px;
		height: 94px;
	}

	.ff-derbys-detail-hero-logo--right {
		margin-left: -20px;
	}
}

@media (max-width: 900px) {
	.ff-derbys-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 30px;
	}
}

@media (max-width: 640px) {
	.ff-derbys-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px 20px;
	}
	.ff-derbys-wrap {
		padding-inline: 12px;
	}

	.ff-derbys-intro {
		width: 100%;
		min-height: 0;
	}

	.ff-derbys-page .ff-vereine-search-box {
		width: 100%;
		max-width: 335px;
	}
}
