/* ==========================================================================
   TF Birkenhard — "Wimbledon" reskin
   Blue (brand) + white. Clean, modern, single-hue palette.
   ========================================================================== */

:root {
	--tfb-blue: #0e5898;
	--tfb-blue-dark: #0a3f70;
	--tfb-blue-darker: #072c4e;
	--tfb-accent: #0a3f70;
	--tfb-accent-dark: #072c4e;
	--tfb-accent-light: #e8f0fb;
	--tfb-ink: #1f2430;
	--tfb-muted: #5c6470;
	--tfb-line: #e6e9ee;
	--tfb-bg: #ffffff;
	--tfb-bg-soft: #f6f8fa;
	--tfb-white: #ffffff;
	--tfb-serif: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--tfb-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--tfb-max: 1200px;
	--tfb-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
	--tfb-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
}

/* ---------- Reset / base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--tfb-sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--tfb-ink);
	background: var(--tfb-bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--tfb-blue);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--tfb-blue-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tfb-serif);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--tfb-ink);
	margin: 0 0 0.5em;
}

p {
	margin: 0 0 1.1em;
}

/* ---------- Layout wrapper ---------- */

.tfb-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.tfb-main {
	flex: 1 1 auto;
	width: 100%;
}

.tfb-content {
	max-width: var(--tfb-max);
	margin: 0 auto;
	padding: 56px 24px;
}

/* ---------- Top logo bar ---------- */

.tfb-logo-bar {
	background: var(--tfb-white);
	border-bottom: 1px solid var(--tfb-line);
}

.tfb-logo-bar__row {
	max-width: var(--tfb-max);
	margin: 0 auto;
	padding: 8px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.tfb-logo img {
	height: 64px;
	width: auto;
}

.tfb-ebusy {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tfb-ebusy img {
	height: 44px;
	width: auto;
	border-radius: 4px;
}

.tfb-ebusy a {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.tfb-ebusy span {
	font-size: 12px;
	line-height: 1.1;
	color: var(--tfb-muted);
	font-weight: 600;
}

/* ---------- Header / nav ---------- */

.tfb-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--tfb-white);
	border-bottom: 1px solid var(--tfb-line);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.tfb-nav {
	max-width: var(--tfb-max);
	margin: 0 auto;
	padding: 0 24px;
}

.tfb-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.tfb-menu li {
	position: relative;
}

.tfb-menu > li > a {
	display: block;
	padding: 10px 18px;
	margin: 4px 2px;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.01em;
	color: var(--tfb-ink);
	position: relative;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease;
}

.tfb-menu > li > a:hover,
.tfb-menu .current-menu-item > a,
.tfb-menu .current_page_item > a {
	color: var(--tfb-white);
	background: var(--tfb-blue);
}

/* Highlight Tennisplatz Buchen menu item */
.tfb-menu > li.menu-item-1507 > a,
.tfb-menu > li.menu-item-1505 > a {
	border: 2px solid var(--tfb-blue);
}

.tfb-menu > li.menu-item-1507 > a:hover,
.tfb-menu > li.menu-item-1507.current-menu-item > a,
.tfb-menu > li.menu-item-1507.current_page_item > a,
.tfb-menu > li.menu-item-1505 > a:hover,
.tfb-menu > li.menu-item-1505.current-menu-item > a,
.tfb-menu > li.menu-item-1505.current_page_item > a {
	border-color: var(--tfb-white);
}

/* Sub-menus */
.tfb-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 8px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: var(--tfb-white);
	border: 1px solid var(--tfb-line);
	border-radius: 10px;
	box-shadow: var(--tfb-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	z-index: 200;
}

.tfb-menu li:hover > .sub-menu,
.tfb-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.tfb-menu .sub-menu li a {
	display: block;
	padding: 10px 16px;
	font-size: 14.5px;
	color: var(--tfb-ink);
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}

.tfb-menu .sub-menu li a:hover,
.tfb-menu .sub-menu .current-menu-item > a {
	background: var(--tfb-blue);
	color: var(--tfb-white);
}

/* nested sub-menus open to the right */
.tfb-menu .sub-menu .sub-menu {
	top: -9px;
	left: 100%;
}

/* Burger */
.tfb-burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 14px 16px;
}

.tfb-burger span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--tfb-ink);
	margin: 5px 0;
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.tfb-burger.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.tfb-burger.is-open span:nth-child(2) {
	opacity: 0;
}
.tfb-burger.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (full-bleed) ---------- */

.tfb-slider {
	position: relative;
	width: 100%;
	min-height: 400px;
	max-height: 560px;
	overflow: hidden;
	background: var(--tfb-blue-darker);
}

.tfb-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.1s ease;
}

.tfb-slide.is-active {
	opacity: 1;
}

.tfb-slider__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 44, 78, 0.35) 0%, rgba(7, 44, 78, 0.15) 40%, rgba(7, 44, 78, 0.65) 100%);
	display: flex;
	align-items: center;
}

.tfb-slider__caption {
	max-width: var(--tfb-max);
	margin: 0 auto;
	width: 100%;
	padding: 0 24px;
	color: var(--tfb-white);
}

.tfb-slider__kicker {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tfb-white);
	background: var(--tfb-accent);
	padding: 6px 14px;
	border-radius: 2px;
	margin-bottom: 18px;
}

.tfb-slider__title {
	font-family: var(--tfb-serif);
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.08;
	color: var(--tfb-white);
	margin: 0 0 18px;
	max-width: 16ch;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.tfb-slider__text {
	font-size: clamp(16px, 2vw, 20px);
	max-width: 52ch;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 0 26px;
}

.tfb-btn {
	display: inline-block;
	background: var(--tfb-accent);
	color: var(--tfb-white);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.02em;
	padding: 14px 30px;
	border-radius: 3px;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.tfb-btn:hover {
	background: var(--tfb-accent-dark);
	color: var(--tfb-white);
	transform: translateY(-2px);
}

.tfb-btn--blue {
	background: var(--tfb-blue);
}

.tfb-btn--blue:hover {
	background: var(--tfb-blue-dark);
}

.tfb-btn--ghost {
	background: transparent;
	border: 2px solid var(--tfb-white);
}

.tfb-btn--ghost:hover {
	background: var(--tfb-white);
	color: var(--tfb-blue);
}

/* ---------- Intro (front page) ---------- */

.tfb-intro {
	max-width: 760px;
	margin: 0 auto 56px;
	text-align: center;
}

.tfb-intro h1,
.tfb-intro h2 {
	font-size: clamp(28px, 4vw, 40px);
}

.tfb-intro p {
	font-size: 18px;
	color: var(--tfb-muted);
}

/* Section heading with accent rule */
.tfb-section-head {
	text-align: center;
	margin: 0 0 40px;
}

.tfb-section-head h2 {
	font-size: clamp(28px, 4vw, 40px);
	margin-bottom: 12px;
}

.tfb-section-head .tfb-rule {
	width: 64px;
	height: 3px;
	background: var(--tfb-accent);
	margin: 0 auto;
	border-radius: 2px;
}

/* ---------- News cards ---------- */

.tfb-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.tfb-card {
	background: var(--tfb-white);
	border: 1px solid var(--tfb-line);
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	box-shadow: var(--tfb-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	overflow: hidden;
}

.tfb-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tfb-shadow);
}

.tfb-card__thumb {
	position: relative;
	height: 160px;
	overflow: hidden;
	background: var(--tfb-bg-soft);
}

.tfb-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
	transition: transform 0.3s ease;
}

.tfb-card:hover .tfb-card__thumb img {
	transform: scale(1.05);
}

.tfb-card__body {
	padding: 16px 20px 20px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.tfb-card__title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
	line-height: 1.3;
}

.tfb-card__title a {
	color: var(--tfb-ink);
}

.tfb-card__title a:hover {
	color: var(--tfb-blue);
}

.tfb-card__excerpt {
	color: var(--tfb-muted);
	font-size: 14px;
	flex: 1 1 auto;
	margin-bottom: 14px;
	line-height: 1.55;
}

.tfb-readmore {
	margin: 0;
}

.tfb-readmore .tfb-btn {
	padding: 8px 18px;
	font-size: 13px;
	background: var(--tfb-blue);
}

.tfb-readmore .tfb-btn:hover {
	background: var(--tfb-blue-dark);
}

/* ---------- News cards: list/archive variant ---------- */

.tfb-cards--list {
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.tfb-card--list {
	align-self: start;
}

.tfb-card--list .tfb-card__thumb {
	height: 120px;
	background: var(--tfb-bg-soft);
}

.tfb-card--list .tfb-card__thumb img {
	object-fit: contain;
	object-position: center;
}

.tfb-card--list .tfb-card__body {
	padding: 10px 14px 14px !important;
	flex: none !important;
}

.tfb-card--list .tfb-card__title {
	font-size: 15px;
	margin-bottom: 4px;
}

.tfb-card--list .tfb-card__excerpt {
	font-size: 12.5px;
	margin-bottom: 8px;
	flex: none;
}

.tfb-card--list .tfb-readmore .tfb-btn {
	padding: 5px 12px;
	font-size: 11.5px;
}

/* ---------- Article / page ---------- */

.tfb-article {
	max-width: 820px;
	margin: 0 auto;
	padding: 56px 24px;
}

.tfb-page-title {
	font-size: clamp(30px, 5vw, 46px);
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 3px solid var(--tfb-accent);
	display: inline-block;
}

.tfb-meta {
	color: var(--tfb-muted);
	font-size: 14.5px;
	margin-bottom: 30px;
}

.tfb-meta a {
	color: var(--tfb-blue);
}

.tfb-entry {
	font-size: 17px;
	line-height: 1.7;
}

/* Override Joomla inline styles for consistent typography */
.tfb-entry [style] {
	font-family: var(--tfb-sans) !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

.tfb-entry a {
	color: var(--tfb-blue) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tfb-entry a:hover {
	color: var(--tfb-blue-dark) !important;
}

.tfb-entry img {
	border-radius: 6px;
	margin: 18px 0;
}

.tfb-entry h1,
.tfb-entry h2,
.tfb-entry h3,
.tfb-entry h4,
.tfb-entry h5,
.tfb-entry h6 {
	font-family: var(--tfb-serif);
	font-weight: 700;
	color: var(--tfb-ink);
	line-height: 1.2;
}

.tfb-entry h1 {
	font-size: 24px;
}

.tfb-entry h2 {
	font-size: 20px;
	margin-top: 1.6em;
}

.tfb-entry h3 {
	font-size: 18px;
	margin-top: 1.4em;
}

.tfb-entry h4 {
	font-size: 19px;
	margin-top: 1.3em;
}

.tfb-entry strong,
.tfb-entry b {
	font-weight: 600;
}

.tfb-entry ul,
.tfb-entry ol {
	padding-left: 1.4em;
}

.tfb-entry blockquote {
	margin: 1.5em 0;
	padding: 18px 24px;
	border-left: 4px solid var(--tfb-accent);
	background: var(--tfb-bg-soft);
	font-style: italic;
	color: var(--tfb-muted);
}

.tfb-entry p {
	margin: 0 0 1.1em;
}

/* ---------- Archive header ---------- */

.tfb-archive-header {
	max-width: var(--tfb-max);
	margin: 0 auto;
	padding: 56px 24px 0;
}

.tfb-archive-header .tfb-page-title {
	border-bottom-color: var(--tfb-accent);
	font-size: 17px;
	margin-bottom: 12px;
	padding-bottom: 10px;
}

.tfb-archive-desc {
	color: var(--tfb-muted);
	max-width: 700px;
	margin-top: 14px;
}

.tfb-cards--archive {
	max-width: var(--tf-max, var(--tfb-max));
	max-width: var(--tfb-max);
	margin: 0 auto;
	padding: 40px 24px 56px;
}

/* Pagination */
.pagination,
.nav-links {
	max-width: var(--tfb-max);
	margin: 0 auto;
	padding: 0 24px 56px;
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.nav-links .page-numbers {
	display: inline-block;
	padding: 10px 16px;
	border: 1px solid var(--tfb-line);
	border-radius: 4px;
	color: var(--tfb-ink);
	font-weight: 600;
	font-size: 15px;
}

.nav-links .page-numbers.current {
	background: var(--tfb-blue);
	border-color: var(--tfb-blue);
	color: var(--tfb-white);
}

.nav-links .page-numbers:hover {
	border-color: var(--tfb-blue);
	color: var(--tfb-blue);
}

/* ---------- Sponsors wall ---------- */

.tfb-sponsors {
	padding: 64px 24px;
	background: var(--tfb-bg-soft);
	border-top: 1px solid var(--tfb-line);
	text-align: center;
}

.tfb-sponsors__inner {
	max-width: var(--tfb-max);
	margin: 0 auto;
}

.tfb-sponsors__title {
	font-size: clamp(28px, 4vw, 40px);
	margin: 0 0 12px;
}

.tfb-sponsors__sub {
	color: var(--tfb-muted);
	max-width: 600px;
	margin: 0 auto 36px;
}

.tfb-sponsors__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.tfb-sponsors__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 180px;
	padding: 16px 20px;
	background: var(--tfb-white);
	border: 1px solid var(--tfb-line);
	border-radius: 8px;
	box-shadow: var(--tfb-shadow-sm);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	text-decoration: none;
	gap: 10px;
}

.tfb-sponsors__name {
	font-size: 13px;
	font-weight: 600;
	color: var(--tfb-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
	line-height: 1.3;
}

.tfb-sponsors__card:hover {
	box-shadow: var(--tfb-shadow);
	transform: translateY(-3px);
}

.tfb-sponsors__card img {
	max-width: 100%;
	max-height: 110px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(0);
	opacity: 1;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.tfb-sponsors__card:hover img {
	filter: grayscale(100%);
	opacity: 0.65;
}

.tfb-sponsors__more {
	margin: 32px 0 0;
}

.tfb-sponsors__more a {
	color: var(--tfb-blue);
	font-weight: 700;
	text-decoration: none;
}

.tfb-sponsors__more a:hover {
	text-decoration: underline;
}

/* ---------- Sponsors Page ---------- */

.tfb-page-hero--sponsors {
	background: linear-gradient(135deg, var(--tfb-blue) 0%, var(--tfb-blue-darker) 100%);
	padding: 56px 24px;
	text-align: center;
}

.tfb-page-hero--sponsors .tfb-page-hero__title {
	color: #fff;
	font-size: clamp(32px, 5vw, 48px);
	margin: 0 0 12px;
}

.tfb-page-hero--sponsors .tfb-page-hero__sub {
	color: rgba(255, 255, 255, 0.85);
	font-size: 18px;
	max-width: 640px;
	margin: 0 auto;
}

.tfb-sponsors-page {
	padding: 56px 24px;
	background: var(--tfb-bg-soft);
}

.tfb-sponsors-page__inner {
	max-width: var(--tfb-max);
	margin: 0 auto;
}

.tfb-sponsors-page__intro {
	max-width: 720px;
	margin: 0 auto 48px;
	text-align: center;
	color: var(--tfb-muted);
	font-size: 17px;
	line-height: 1.7;
}

.tfb-sponsors-page__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.tfb-sponsors-page__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 180px;
	padding: 16px 20px;
	background: var(--tfb-white);
	border: 1px solid var(--tfb-line);
	border-radius: 8px;
	box-shadow: var(--tfb-shadow-sm);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	text-decoration: none;
	gap: 10px;
}

.tfb-sponsors-page__name {
	font-size: 13px;
	font-weight: 600;
	color: var(--tfb-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: center;
	line-height: 1.3;
}

.tfb-sponsors-page__card:hover {
	box-shadow: var(--tfb-shadow);
	transform: translateY(-4px);
}

.tfb-sponsors-page__card img {
	max-width: 100%;
	max-height: 110px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(0);
	opacity: 1;
	transition: filter 0.25s ease, opacity 0.25s ease;
}

.tfb-sponsors-page__card:hover img {
	filter: grayscale(100%);
	opacity: 0.6;
}

.tfb-sponsors-cta {
	padding: 56px 24px;
	background: var(--tfb-white);
	border-top: 1px solid var(--tfb-line);
	text-align: center;
}

.tfb-sponsors-cta__inner {
	max-width: 560px;
	margin: 0 auto;
}

.tfb-sponsors-cta__title {
	font-size: clamp(24px, 3.5vw, 32px);
	margin: 0 0 12px;
	color: var(--tfb-blue);
}

.tfb-sponsors-cta__text {
	color: var(--tfb-muted);
	margin: 0 0 24px;
	line-height: 1.6;
}

.tfb-sponsors-cta__btn {
	display: inline-block;
	padding: 14px 32px;
	background: var(--tfb-blue);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.tfb-sponsors-cta__btn:hover {
	background: var(--tfb-blue-darker);
	transform: translateY(-2px);
}

/* ---------- Gallery ---------- */

.tfb-gallery {
	padding: 56px 24px;
	background: var(--tfb-bg-soft);
}

.tfb-gallery__inner {
	max-width: var(--tfb-max);
	margin: 0 auto;
}

.tfb-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
}

.tfb-gallery__card {
	display: block;
	background: var(--tfb-white);
	border: 1px solid var(--tfb-line);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--tfb-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
	align-self: start;
}

.tfb-gallery__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--tfb-shadow);
}

.tfb-gallery__thumb {
	position: relative;
	height: 120px;
	overflow: hidden;
	background: var(--tfb-bg-soft);
}

.tfb-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.tfb-gallery__noimg {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tfb-accent-light);
	color: var(--tfb-blue);
	font-size: 40px;
}

.tfb-gallery__count {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(14, 88, 152, 0.85);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 3px;
}

.tfb-gallery__info {
	padding: 10px 14px 14px;
}

.tfb-gallery__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--tfb-ink);
	margin: 0;
	line-height: 1.3;
}

.tfb-gallery__card:hover .tfb-gallery__title {
	color: var(--tfb-blue);
}

.tfb-gallery__empty {
	text-align: center;
	color: var(--tfb-muted);
	font-size: 18px;
	padding: 40px 0;
}

/* Gallery image grid (on event posts) */
.tfb-gallery-images {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 24px 0;
}

.tfb-gallery-images img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 6px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.tfb-gallery-images img:hover {
	transform: scale(1.02);
	box-shadow: var(--tfb-shadow);
}

/* Lightbox */
.tfb-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.92);
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.tfb-lightbox.is-open {
	display: flex;
}

.tfb-lightbox img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 4px;
}

.tfb-lightbox__close {
	position: absolute;
	top: 20px;
	right: 30px;
	font-size: 36px;
	color: #fff;
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.tfb-lightbox__close:hover {
	opacity: 1;
}

.tfb-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 48px;
	color: #fff;
	background: none;
	border: none;
	cursor: pointer;
	padding: 20px;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.tfb-lightbox__nav:hover {
	opacity: 1;
}

.tfb-lightbox__nav--prev { left: 10px; }
.tfb-lightbox__nav--next { right: 10px; }

/* ---------- Footer ---------- */

.tfb-footer {
	background: var(--tfb-blue-darker);
	color: rgba(255, 255, 255, 0.85);
	margin-top: auto;
	font-size: 14px;
}

.tfb-footer__inner {
	max-width: var(--tfb-max);
	margin: 0 auto;
	padding: 56px 24px 40px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}

.tfb-footer__col p {
	margin: 0;
}

.tfb-footer a {
	color: rgba(255, 255, 255, 0.85);
}

.tfb-footer a:hover {
	color: var(--tfb-white);
}

.tfb-footer__label {
	display: block;
	font-family: var(--tfb-serif);
	font-size: 15px;
	font-weight: 700;
	color: var(--tfb-white);
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--tfb-accent);
}

.tfb-footer__col a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}

.tfb-footer__col img {
	border-radius: 4px;
}

.tfb-footer__address {
	line-height: 1.6;
}

.tfb-footer__address img {
	float: left;
	margin-right: 12px;
}

.tfb-copyright {
	background: var(--tfb-blue-darker);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	text-align: center;
	padding: 14px 24px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.6);
}

/* ---------- 404 ---------- */

.tfb-404 {
	text-align: center;
	padding: 80px 24px;
	max-width: 600px;
	margin: 0 auto;
}

.tfb-404 .tfb-page-title {
	border: none;
	display: block;
	font-size: clamp(40px, 8vw, 72px);
	color: var(--tfb-blue);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.tfb-cards {
		grid-template-columns: 1fr;
	}

	.tfb-sponsors__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.tfb-sponsors-page__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}

	.tfb-sponsors-page__card {
		height: 160px;
		padding: 14px 16px;
	}

	.tfb-sponsors-page__card img {
		max-height: 90px;
	}

	.tfb-footer__inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.tfb-logo-bar__row {
		flex-direction: row;
		gap: 10px;
		text-align: left;
		padding: 6px 16px;
	}

	.tfb-logo img {
		height: 48px;
	}

	.tfb-ebusy {
		min-width: 0;
	}

	.tfb-ebusy img {
		height: 24px;
		flex-shrink: 0;
	}

	.tfb-ebusy span {
		font-size: 9px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.tfb-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tfb-gallery-images {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 1199px) {
.tfb-burger{
		display: block;
		padding: 10px 16px;
		position: relative;
		z-index: 200;
	}

.tfb-header{
		display: flex;
		align-items: center;
		justify-content: flex-start;
		position: relative;
		z-index: 150;
	}

.tfb-logo-bar{
		position: sticky;
		top: 0;
		z-index: 160;
	}

.tfb-nav{
		position: fixed;
		top: 96px;
		left: 0;
		bottom: 0;
		width: min(85vw, 340px);
		background: var(--tfb-white);
		box-shadow: var(--tfb-shadow);
		padding: 16px 0 40px;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		overflow-y: auto;
		z-index: 140;
	}

.tfb-nav.is-open{
		transform: translateX(0);
	}

.tfb-menu{
		flex-direction: column;
	}

.tfb-menu > li > a{
		padding: 14px 28px;
		border-bottom: 1px solid var(--tfb-bg-soft);
	}

/* Keep Tennisplatz Buchen outline on mobile */
	.tfb-menu > li.menu-item-1507 > a,
	.tfb-menu > li.menu-item-1505 > a{
		border: 2px solid var(--tfb-blue);
		border-bottom: 2px solid var(--tfb-blue);
	}

.tfb-menu > li > a::after{
		display: none;
	}

/* sub-menus: collapsed by default, expand on tap */
	.tfb-menu li > a{
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

.tfb-menu li.menu-item-has-children > a::after{
		content: '';
		display: inline-block;
		width: 8px;
		height: 8px;
		border-right: 2px solid var(--tfb-muted);
		border-bottom: 2px solid var(--tfb-muted);
		transform: rotate(45deg);
		margin-left: 12px;
		transition: transform 0.25s ease;
		flex-shrink: 0;
	}

.tfb-menu li.menu-item-has-children.is-open > a::after{
		transform: rotate(-135deg);
	}

.tfb-menu .sub-menu{
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: none;
		box-shadow: none;
		min-width: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		padding: 0 0 0 14px;
		background: var(--tfb-bg-soft);
	}

.tfb-menu .sub-menu.is-open{
		max-height: 800px;
	}

.tfb-menu .sub-menu .sub-menu{
		left: 0;
		top: 0;
	}
}

@media (max-width: 768px) {
body{
		font-size: 16px;
	}

.tfb-page-title{
		font-size: 22px;
		margin-bottom: 14px;
		padding-bottom: 14px;
	}

.tfb-entry h1{
		font-size: 20px;
	}

.tfb-entry h2{
		font-size: 18px;
	}

.tfb-entry h3{
		font-size: 16px;
	}

.tfb-slider{
		min-height: 340px;
	}

.tfb-slider__caption{
		padding-bottom: 0;
	}

.tfb-slider__kicker{
		font-size: 12px;
		margin-bottom: 12px;
		padding: 5px 12px;
	}

.tfb-slider__title{
		font-size: clamp(22px, 6vw, 30px);
		max-width: 14ch;
		margin-bottom: 14px;
	}

.tfb-slider__text{
		font-size: 13px;
		margin-bottom: 18px;
	}

.tfb-btn{
		padding: 12px 24px;
		font-size: 14px;
	}
}

@media (max-width: 600px) {
	.tfb-sponsors__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tfb-sponsors-page__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.tfb-sponsors-page__card {
		height: 140px;
		padding: 12px;
	}

	.tfb-sponsors-page__card img {
		max-height: 75px;
	}

	.tfb-sponsors-page__name {
		font-size: 11px;
	}

	.tfb-footer__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.tfb-content {
		padding: 40px 18px;
	}

	.tfb-article {
		padding: 40px 18px;
	}

	.tfb-gallery__grid {
		grid-template-columns: 1fr;
	}

	.tfb-gallery__thumb {
		height: 180px;
	}

	.tfb-gallery-images {
		grid-template-columns: 1fr;
	}

	.tfb-gallery-images img {
		height: 250px;
	}
}

/* ---------- eBuSy Booking Widget ---------- */

.tfb-ebusy-widget {
	max-width: 900px;
	margin: 0 auto;
}

.tfb-ebusy-widget #ebusy-container {
	width: 100%;
	line-height: 0;
}

.tfb-ebusy-widget #ebusy-container iframe {
	width: 100% !important;
	border: 1px solid var(--tfb-line);
	border-radius: 8px;
	display: block;
}

.page-template-page-ebusy .tfb-content {
	padding-bottom: 24px;
}

.tfb-ebusy-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	text-decoration: none;
}

.tfb-ebusy-footer img {
	height: 36px;
	width: auto;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.tfb-ebusy-footer span {
	font-size: 13px;
	color: var(--tfb-muted);
}

.tfb-ebusy-footer:hover img {
	opacity: 1;
}

.tfb-ebusy-footer:hover span {
	color: var(--tfb-blue);
}

/* Editable eBuSy footer content (from page content) */
.tfb-ebusy-footer-content {
	margin-top: 28px;
	text-align: center;
}

.tfb-ebusy-footer-content p {
	font-size: 13px;
	color: var(--tfb-muted);
	margin: 0;
}

.tfb-ebusy-footer-content a {
	color: var(--tfb-muted);
	text-decoration: none;
}

.tfb-ebusy-footer-content a:hover {
	color: var(--tfb-blue);
	text-decoration: underline;
}

/* ---------- Vorstandschaft Board ---------- */

.tfb-board {
	background: #f4f7fa;
	padding: 48px 24px;
}

.tfb-board__inner {
	max-width: 900px;
	margin: 0 auto;
}

.tfb-board__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.tfb-board__card {
	background: #fff;
	border-radius: 10px;
	padding: 28px 20px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tfb-board__card img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 14px;
	border: 3px solid var(--tfb-blue);
}

.tfb-board__card h3 {
	font-size: 16px;
	font-weight: 600;
	color: var(--tfb-blue);
	margin: 0 0 8px;
}

.tfb-board__card p {
	font-size: 14px;
	color: #444;
	margin: 0;
	line-height: 1.6;
}

.tfb-board__card p a {
	color: var(--tfb-blue);
	text-decoration: none;
}

.tfb-board__card p a:hover {
	text-decoration: underline;
}

@media (max-width: 600px) {
	.tfb-board {
		padding: 32px 16px;
	}
	.tfb-board__grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.tfb-board__card {
		padding: 20px 16px;
	}
	.tfb-board__card img {
		width: 80px;
		height: 80px;
	}
}



/* Desktop hero: fixed height to fit content */
@media (min-width: 769px) {
	.tfb-slider {
		height: 520px;
	}
}

/* ---------- Sponsors scroller (carousel) ---------- */

.tfb-sponsors-scroller {
	background: var(--tfb-bg-soft);
	padding: 40px 0;
	margin: 32px 0;
}

.tfb-sponsors-scroller__box {
	max-width: var(--tfb-max);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tfb-sponsors-scroller__viewport {
	flex: 1;
	height: 540px;
	overflow: hidden;
	position: relative;
	border-radius: 8px;
	background: var(--tfb-white);
	border: 1px solid var(--tfb-line);
}

.tfb-sponsors-scroller__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	box-sizing: border-box;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.tfb-sponsors-scroller__slide.is-active {
	opacity: 1;
}

.tfb-sponsors-scroller__slide img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.tfb-sponsors-scroller__arrow {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--tfb-line);
	background: var(--tfb-white);
	color: var(--tfb-ink);
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.tfb-sponsors-scroller__arrow:hover {
	background: var(--tfb-blue);
	color: var(--tfb-white);
	border-color: var(--tfb-blue);
}

.tfb-sponsors-scroller__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.tfb-sponsors-scroller__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: var(--tfb-line);
	cursor: pointer;
	transition: background 0.2s ease;
}

.tfb-sponsors-scroller__dot.is-active {
	background: var(--tfb-blue);
}

@media (max-width: 768px) {
	.tfb-sponsors-scroller {
		padding: 24px 0;
		margin: 24px 0;
	}

	.tfb-sponsors-scroller__box {
		padding: 0 16px;
		gap: 8px;
	}

	.tfb-sponsors-scroller__viewport {
		height: 340px;
	}

	.tfb-sponsors-scroller__slide {
		padding: 20px;
	}

	.tfb-sponsors-scroller__arrow {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
}


/* === Joomla-Komponenten (aus tf-birkenhard.de uebernommen) === */

.tfb-person {
display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 20px 22px;
	background: var(--tfb-white);
	border: 1px solid var(--tfb-line);
	border-radius: var(--tfb-radius);
	box-shadow: 0 1px 2px rgba(16, 26, 38, .04), 0 8px 22px rgba(16, 26, 38, .05);
}

.tfb-person--lead {
border-color: rgba(255, 210, 30, .6);
	box-shadow: 0 10px 30px rgba(255, 210, 30, .18);
}

.tfb-person .tfb-role {
font-size: 12px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--tfb-blue);
}

.tfb-person h3 {
margin: 2px 0 6px;
	font-size: 19px;
	font-weight: 800;
	color: var(--tfb-ink);
}

.tfb-person a {
font-size: 14.5px;
	line-height: 1.5;
	color: var(--tfb-ink-soft);
	text-decoration: none;
	word-break: break-word;
}

.tfb-person a:hover {
color: var(--tfb-blue);
}

.tfb-person .tfb-role {
display: inline-block;
	align-self: flex-start;
	padding: 3px 9px;
	margin-bottom: 4px;
	background: var(--tfb-blue-soft);
	border-radius: 999px;
	line-height: 1.3;
}

footer#sp-footer .tfb-footer-title {
margin: 0 0 12px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tfb-accent);
}

footer#sp-footer .tfb-social {
display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

footer#sp-footer .tfb-social a {
display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .18s var(--tfb-ease), border-color .18s var(--tfb-ease), transform .18s var(--tfb-ease);
}

footer#sp-footer .tfb-social a:hover {
background: rgba(255, 210, 30, .16);
	border-color: rgba(255, 210, 30, .5);
	color: #fff;
	transform: translateY(-1px);
}

footer#sp-footer .tfb-social svg {
width: 16px;
	height: 16px;
	fill: currentColor;
	opacity: .9;
}

footer#sp-footer .tfb-social a:hover {
background: rgba(255, 255, 255, .16);
	transform: translateY(-1px);
}

.tfb-gallery-item {
display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 10px;
	background: #ffffff;
	border: 1px solid #e3eef9;
	border-radius: 12px;
}

.tfb-gallery-item img {
width: 100%;
	height: 200px;
	object-fit: contain;
	background: #f4f9ff;
	border-radius: 8px;
	cursor: zoom-in;
}

.tfb-gallery-item small {
display: block;
	font-size: 12.5px;
	line-height: 1.45;
	color: #4a6280;
}

.tfb-gallery-item small strong {
display: block;
	font-size: 13.5px;
	color: var(--tfb-blue-dark);
}

.tfb-person .tfb-role {
margin: 0 0 6px;
}

.tfb-person h3 {
margin: 0 0 8px;
}

.tfb-person a {
display: block;
	overflow-wrap: anywhere;
}

.tfb-gal-group {
margin: 36px 0 8px;
}

.tfb-gal-group h3 {
margin: 0 0 14px;
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -.02em;
}

.tfb-gallery-item {
background: #ffffff;
	border: 1px solid rgba(0, 0, 0, .07);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 10px 24px -22px rgba(0, 0, 0, .3);
}

.tfb-gallery-item img {
border-radius: 0;
}

.tfb-gallery-item small {
display: block;
	padding: 11px 14px 13px;
	font-size: 13px;
	line-height: 1.45;
	color: #6e6e73;
}

.tfb-gallery-item small strong {
color: #1d1d1f;
	font-weight: 600;
	font-size: 14px;
}

.tfb-media-card,
.tfb-board,
.tfb-person,
.tfb-sponsor {
border-radius: 16px;
}

.tfb-board,
.tfb-person {
border-color: rgba(0, 0, 0, .07);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 10px 24px -22px rgba(0, 0, 0, .28);
}

.tfb-gallery-item img {
width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	max-height: none;
	object-fit: cover;
	background: #f5f5f7;
}


/* Galerie-Raster fuer Joomla-Markup */
.tfb-entry .tfb-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 10px;
}

.tfb-entry .tfb-gallery-item {
	margin: 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .07);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 10px 24px -22px rgba(0, 0, 0, .3);
}

.tfb-entry .tfb-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
	cursor: zoom-in;
}

.tfb-entry .tfb-gallery-item small {
	display: block;
	padding: 11px 14px 13px;
	font-size: 13px;
	line-height: 1.45;
	color: #6e6e73;
}

.tfb-entry .tfb-gallery-item small strong {
	color: #1d1d1f;
	font-weight: 600;
	font-size: 14px;
}

@media (max-width: 900px) {
	.tfb-entry .tfb-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.tfb-entry .tfb-gallery__grid {
		grid-template-columns: 1fr;
	}
}

/* Galerie-Raster (Joomla-Markup: .tfb-gallery als Container) */
.tfb-entry .tfb-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 10px;
}

.tfb-entry .tfb-gal-group {
	margin: 36px 0 8px;
}

@media (max-width: 900px) {
	.tfb-entry .tfb-gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.tfb-entry .tfb-gallery {
		grid-template-columns: 1fr;
	}
}

/* Top-Leiste wie im Joomla-Template */
.tfb-topbar {
	background: var(--tfb-blue-darker);
	color: #fff;
	font-size: 14px;
}

.tfb-topbar__inner {
	max-width: var(--tfb-max);
	margin: 0 auto;
	padding: 7px 24px;
	display: flex;
	justify-content: flex-end;
}

.tfb-topbar a {
	color: #fff !important;
	text-decoration: none;
	opacity: .92;
}

.tfb-topbar a:hover {
	opacity: 1;
	text-decoration: underline;
}

.tfb-lead {
	font-size: 19px;
	line-height: 1.6;
	color: var(--tfb-ink);
	max-width: 900px;
	margin: 0 0 34px;
}

@media (max-width: 700px) {
	.tfb-topbar__inner {
		justify-content: center;
		padding: 6px 16px;
	}
}

/* --- Abschnitte als ausklappbare Kacheln (wie Joomla) --- */
.tfb-entry .tfb-card-tools {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 14px;
}

.tfb-entry .tfb-card-all {
	appearance: none;
	border: 1px solid #d5e3f4;
	background: #fff;
	color: var(--tfb-blue-dark);
	font: 600 13px/1.2 var(--tfb-serif);
	padding: 9px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.tfb-entry .tfb-card-all:hover {
	background: var(--tfb-accent-light);
	border-color: var(--tfb-blue);
}

.tfb-entry section.tfb-card {
	margin: 0 0 16px;
	background: #fff;
	border: 1px solid var(--tfb-line);
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(11, 43, 82, .05);
	overflow: hidden;
}

.tfb-entry .tfb-card__head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 16px 20px;
	cursor: pointer;
	background: #fff;
	transition: background .15s ease;
}

.tfb-entry .tfb-card__head:hover,
.tfb-entry .tfb-card__head:focus-visible {
	background: #f7fbff;
	outline: none;
}

.tfb-entry .tfb-card__head h2 {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
	flex: 1 1 auto;
	scroll-margin-top: 90px;
}

.tfb-entry .tfb-card__head::after {
	content: "";
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	margin-top: -4px;
	border-right: 2px solid var(--tfb-blue);
	border-bottom: 2px solid var(--tfb-blue);
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.tfb-entry .tfb-card.is-open .tfb-card__head::after {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.tfb-entry section.tfb-card > .tfb-card__body {
	display: none;
	padding: 0 20px 18px;
}

.tfb-entry section.tfb-card.is-open > .tfb-card__body {
	display: block;
}

.tfb-entry .tfb-card__body > p:first-child {
	margin-top: 2px;
}

.tfb-entry .tfb-card__body > *:last-child {
	margin-bottom: 0;
}

/* Bild und Unterschrift als eine Karte */
.tfb-entry .tfb-media-card {
	margin: 0 0 22px;
	background: #fff;
	border: 1px solid var(--tfb-line);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(11, 43, 82, .05);
}

.tfb-entry .tfb-media-card img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border-radius: 0;
}

.tfb-entry .tfb-media-card figcaption {
	padding: 10px 16px 14px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--tfb-muted);
}

@media (max-width: 640px) {
	.tfb-entry .tfb-card__head {
		padding: 14px 16px;
		gap: 10px;
	}

	.tfb-entry .tfb-card__head h2 {
		font-size: 18px;
	}

	.tfb-entry section.tfb-card > .tfb-card__body {
		padding: 0 16px 16px;
	}
}

/* Klappkarten nicht anheben (Kollision mit den News-Karten) */
.tfb-entry section.tfb-card:hover {
	transform: none;
	box-shadow: 0 2px 10px rgba(11, 43, 82, .05);
}

.tfb-entry .tfb-card__head {
	display: flex;
}

/* Ruhiges Oeffnen auf dem Handy: kein Auto-Scroll des Browsers */
.tfb-entry {
	overflow-anchor: none;
}

.tfb-entry .tfb-card__head {
	scroll-margin-top: 25vh;
}

@media (max-width: 860px) {
	.tfb-entry .tfb-card__head h2 {
		font-size: 18px;
	}
}


/* ===== Joomla-Paritaet Startseite + Mobilmenue ===== */

/* 1) Buchungssystem-Leiste wie Joomla: blauer Verlauf, gelbe Pille rechts */
.tfb-topbar {
	background: linear-gradient(90deg, var(--tfb-blue-darker) 0%, var(--tfb-blue) 100%);
	padding: 7px 0;
}

.tfb-topbar__inner {
	padding: 0 20px;
	align-items: center;
	justify-content: flex-end;
}

.tfb-topbar a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 12px;
	border-radius: 8px;
	background: #ffd21e;
	color: var(--tfb-blue-darker) !important;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .01em;
	text-decoration: none;
	white-space: nowrap;
	opacity: 1;
	box-shadow: 0 2px 10px rgba(4, 22, 46, .28);
}

.tfb-topbar a strong {
	font-weight: 800;
}

.tfb-topbar a::before {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tfb-blue-darker);
	opacity: .55;
}

.tfb-topbar a:hover {
	background: #ffe066;
	text-decoration: none;
	opacity: 1;
}

@media (max-width: 767px) {
	.tfb-topbar {
		padding: 6px 0;
	}

	.tfb-topbar__inner {
		justify-content: center;
		padding: 0 12px;
	}
}

/* 2) Slider duenner (Joomla: clamp(180px, 27vw, 400px)) */
.tfb-slider {
	height: clamp(180px, 27vw, 400px);
	min-height: 0;
	max-height: none;
}

.tfb-slide {
	object-fit: cover;
	object-position: center 55%;
}

@media (max-width: 900px) {
	.tfb-slider {
		height: clamp(170px, 42vw, 300px);
		min-height: 0;
	}
}

/* 3) Ueberschrift mit blauem Strich, Beschreibung darunter */
.tfb-lead {
	max-width: 80ch;
	margin: 0 0 30px;
	font-size: 17px;
	line-height: 1.62;
	color: var(--tfb-muted);
}

.tfb-lead strong {
	display: block;
	margin: 0 0 14px;
	font-size: clamp(26px, 3.1vw, 40px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.022em;
	color: var(--tfb-blue-darker);
}

.tfb-lead strong::before {
	content: "";
	display: block;
	width: 58px;
	height: 4px;
	margin: 0 0 16px;
	border-radius: 2px;
	background: var(--tfb-blue);
}

@media (max-width: 767px) {
	.tfb-lead {
		margin-bottom: 24px;
		font-size: 16px;
	}

	.tfb-lead strong {
		font-size: 27px;
		line-height: 1.16;
	}
}

/* 4) Bilder in Berichten/Nachrichten nicht mehr anschneiden */
.tfb-card:not(.tfb-card--list) .tfb-card__thumb {
	height: auto;
	max-height: 260px;
	aspect-ratio: 16 / 10;
	background: #eef3f9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tfb-card:not(.tfb-card--list) .tfb-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.tfb-card:hover .tfb-card__thumb img {
	transform: none;
}

/* Galerie-Bilder ganz zeigen (wie Joomla: object-fit: contain) */
.tfb-entry .tfb-gallery-item img {
	object-fit: contain;
	background: #f4f9ff;
}

/* Vorstands-Portraits: Gesichter bleiben im runden Bild */
.tfb-board__card img {
	object-position: center 22%;
}

/* 5) Mobilmenue: X oben rechts in der Leiste, Klick daneben schliesst */
.tfb-nav__close {
	display: none;
}

@media (max-width: 1199px) {
	.tfb-nav {
		top: 0;
		bottom: auto;
		height: 100dvh;
		max-height: 100dvh;
		width: min(86vw, 340px);
		padding: 64px 0 40px;
		z-index: 300;
		overscroll-behavior: contain;
	}

	.tfb-nav__close {
		position: absolute;
		top: 12px;
		right: 12px;
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		padding: 0;
		background: var(--tfb-accent-light);
		border: 1px solid #cfe0f2;
		border-radius: 50%;
		color: var(--tfb-blue-dark);
		cursor: pointer;
		z-index: 2;
	}

	.tfb-nav__close::before,
	.tfb-nav__close::after {
		content: "";
		position: absolute;
		width: 18px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
	}

	.tfb-nav__close::before {
		transform: rotate(45deg);
	}

	.tfb-nav__close::after {
		transform: rotate(-45deg);
	}

	.tfb-nav-overlay {
		position: fixed;
		inset: 0;
		background: rgba(7, 31, 61, .45);
		opacity: 0;
		pointer-events: none;
		transition: opacity .25s ease;
		z-index: 290;
	}

	.tfb-nav-overlay.is-visible {
		opacity: 1;
		pointer-events: auto;
	}
}

body.tfb-nav-open {
	overflow: hidden;
}

/* Menue-Ebene: Header ueber der Logo-Leiste, Burger tritt zurueck */
@media (max-width: 1199px) {
	.tfb-header {
		z-index: 310;
	}

	.tfb-burger.is-open {
		opacity: 0;
		pointer-events: none;
	}
}


/* ===== Hero: zwei Bilder im Wechsel + weicher Verlauf ===== */
.tfb-slider {
	background: #fff;
}

.tfb-slide {
	transition: opacity 1.4s ease;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 74%, rgba(0, 0, 0, .45) 90%, rgba(0, 0, 0, 0) 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 74%, rgba(0, 0, 0, .45) 90%, rgba(0, 0, 0, 0) 100%);
}

/* ===== Mobilmenue: Eintraege mit vielen Unterpunkten springen direkt ===== */
.tfb-subtoggle {
	display: none;
}

@media (max-width: 1199px) {
	.tfb-menu > li {
		position: relative;
	}

	.tfb-menu > li.tfb-jump > a {
		padding-right: 66px;
	}

	.tfb-menu > li.tfb-jump > a::after {
		display: none !important;
	}

	.tfb-subtoggle {
		position: absolute;
		top: 6px;
		right: 10px;
		display: grid;
		place-items: center;
		width: 40px;
		height: 40px;
		padding: 0;
		background: var(--tfb-bg-soft);
		border: 1px solid var(--tfb-line);
		border-radius: 10px;
		color: var(--tfb-blue-dark);
		cursor: pointer;
	}

	.tfb-subtoggle::before {
		content: "";
		width: 8px;
		height: 8px;
		margin-top: -4px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform .25s ease, margin .25s ease;
	}

	.tfb-menu > li.is-open > .tfb-subtoggle::before {
		margin-top: 4px;
		transform: rotate(-135deg);
	}
}


/* ===== Mobil: Burger neben das Logo, keine leere Zeile ===== */
@media (max-width: 1199px) {
	.tfb-header {
		margin-top: -56px;
		height: 56px;
		min-height: 0;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		padding: 0 6px;
		background: transparent;
	}

	.tfb-burger {
		padding: 6px 10px;
		background: var(--tfb-white);
		border-radius: 10px;
	}

	.tfb-logo {
		max-width: calc(100% - 110px);
		margin: 0 auto;
	}
}


/* ===== Buttons: durchgehend rund ===== */
button,
.tfb-btn,
.tfb-card-all,
.tfb-subtoggle,
.tfb-nav__close,
input[type="submit"],
.wp-block-button__link {
	border-radius: 999px;
}

/* ===== Buchungssystem-Leiste: kraeftiger, nicht gelb ===== */
.tfb-topbar {
	padding: 10px 0;
}

.tfb-topbar a {
	padding: 10px 20px 10px 16px;
	background: #fff;
	color: var(--tfb-blue-darker) !important;
	font-size: 13px;
	font-weight: 700;
	border-radius: 999px;
	box-shadow: 0 2px 12px rgba(4, 22, 46, .3);
}

.tfb-topbar a:hover {
	background: #eef4fb;
}

.tfb-topbar a strong {
	font-weight: 800;
}

/* ===== Mobil: Burger sitzt in der weissen Leiste (klebt beim Scrollen mit) ===== */
@media (max-width: 1199px) {
	.tfb-header {
		margin: 0;
		height: 0;
		min-height: 0;
		padding: 0;
		background: transparent;
		z-index: 310;
	}

	.tfb-logo-bar__row {
		position: relative;
		padding-left: 66px;
		padding-right: 20px;
	}

	.tfb-burger {
		display: block;
		position: absolute;
		top: 50%;
		left: 6px;
		right: auto;
		transform: translateY(-50%);
		padding: 8px 10px;
		background: var(--tfb-white);
		border-radius: 999px;
		z-index: 5;
	}

	.tfb-burger.is-open {
		opacity: 0;
		pointer-events: none;
	}

	.tfb-logo {
		max-width: 100%;
		margin: 0 0 0 auto;
	}
}


/* ===== Social-Links (Facebook / Instagram) ===== */
.tfb-social {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tfb-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	min-width: 44px;
	padding: 0 10px;
	border-radius: 999px;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 2px 10px rgba(4, 22, 46, .18);
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.tfb-social__link svg {
	flex: 0 0 auto;
}

.tfb-social__link span {
	font-size: 13px;
	font-weight: 700;
}

.tfb-social__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(4, 22, 46, .26);
}

.tfb-social__link--ig {
	background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 55%, #6228d7 100%);
}

.tfb-social__link--fb {
	background: #1877f2;
}

/* Social in der weissen Leiste: rechts neben dem Logo */
.tfb-social--bar {
	margin-left: auto;
}

/* Social im Ausklappmenue */
.tfb-social--drawer {
	justify-content: center;
	padding: 0 16px 16px;
}

/* Social im Fussbereich */
.tfb-social--footer {
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px;
}

.tfb-footer__mail a {
	font-size: 13px;
}

/* ===== Mobil: Menue rechts, klappt von rechts aus, Logo links ===== */
@media (max-width: 1199px) {
	.tfb-logo-bar__row {
		padding-left: 20px;
		padding-right: 66px;
	}

	.tfb-burger {
		left: auto;
		right: 6px;
	}

	.tfb-logo {
		margin: 0 auto 0 0;
	}

	.tfb-social--bar {
		display: none;
	}

	.tfb-nav {
		left: auto;
		right: 0;
		transform: translateX(100%);
		box-shadow: -18px 0 50px -30px rgba(7, 31, 61, .45);
	}

	.tfb-nav.is-open {
		transform: translateX(0);
	}

	.tfb-nav__close {
		left: 12px;
		right: auto;
	}
}

/* ===== Sponsoren auf der Startseite ===== */
.tfb-sponsors {
	padding: 56px 20px 64px;
	background: var(--tfb-bg-soft);
	border-top: 1px solid var(--tfb-line);
	text-align: center;
}

.tfb-sponsors__inner {
	max-width: var(--tfb-max);
	margin: 0 auto;
}

.tfb-sponsors__card {
	border-radius: 16px;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.tfb-sponsors__card:hover {
	transform: translateY(-3px);
}

.tfb-sponsors__more a {
	display: inline-block;
	margin: 26px 0 0;
	padding: 11px 22px;
	border-radius: 999px;
	background: var(--tfb-white);
	border: 1px solid var(--tfb-line);
	color: var(--tfb-blue-darker);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.tfb-sponsors__more a:hover {
	background: var(--tfb-blue-darker);
	border-color: var(--tfb-blue-darker);
	color: #fff;
}


/* ===== Desktop: Buchungssystem in der weissen Leiste, Topbar entfaellt ===== */
.tfb-bar-cta {
	display: none;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--tfb-blue-darker);
	color: #fff !important;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 2px 10px rgba(4, 22, 46, .18);
	transition: transform .2s ease, box-shadow .2s ease;
}

.tfb-bar-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(4, 22, 46, .26);
}

@media (min-width: 1200px) {
	.tfb-topbar {
		display: none;
	}

	.tfb-bar-cta {
		display: inline-flex;
		margin-right: 14px;
	}

	.tfb-social--bar {
		margin-left: 0;
	}

	.tfb-menu {
		flex-wrap: nowrap;
	}

	.tfb-menu a {
		white-space: nowrap;
	}
}


/* ===== Desktop: Kopfleiste dreispaltig, Buchungssystem mittig ===== */
@media (min-width: 1200px) {
	.tfb-logo-bar__row {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
		gap: 20px;
		padding: 16px 24px;
	}

	.tfb-logo {
		justify-self: start;
	}

	.tfb-bar-cta {
		justify-self: center;
		margin: 0;
	}

	.tfb-social--bar {
		justify-self: end;
		margin-left: 0;
	}
}

/* ===== Desktop: mehr Breite bei grossen Bildschirmen ===== */
@media (min-width: 1500px) {
	:root {
		--tfb-max: 1360px;
	}
}

/* ===== Header-Bild oben auf allen Seiten ===== */
.tfb-page-head {
	margin: 0 0 22px;
}

@media (min-width: 769px) {
	.tfb-page-head {
		position: relative;
		margin: 0 0 40px;
		padding: 72px 32px;
		border-radius: 20px;
		overflow: hidden;
		text-align: center;
		background:
			linear-gradient(180deg, rgba(7, 44, 78, .18), rgba(7, 44, 78, .40)),
			url("https://www.tf-birkenhard.de/wp-content/uploads/2026/11/hero-drohne.jpg") center 42% / cover no-repeat;
	}

	.tfb-page-head .tfb-page-title {
		display: block;
		margin: 0;
		padding: 0;
		border: 0;
		color: #fff;
		font-size: clamp(30px, 3.2vw, 44px);
		text-shadow: 0 2px 14px rgba(4, 22, 46, .45);
	}

	.tfb-page-hero--sponsors {
		position: relative;
		padding: 92px 24px;
		background:
			linear-gradient(180deg, rgba(7, 44, 78, .18), rgba(7, 44, 78, .42)),
			url("https://www.tf-birkenhard.de/wp-content/uploads/2026/11/hero-drohne.jpg") center 42% / cover no-repeat;
	}

	.tfb-page-hero--sponsors .tfb-page-hero__inner {
		position: relative;
		z-index: 1;
	}
}

/* Handy: Header-Bild nur auf der Galerie-Seite */
@media (max-width: 768px) {
	.page-id-40 .tfb-page-hero--sponsors {
		position: relative;
		background:
			linear-gradient(180deg, rgba(7, 44, 78, .16), rgba(7, 44, 78, .42)),
			url("https://www.tf-birkenhard.de/wp-content/uploads/2026/11/hero-drohne.jpg") center 42% / cover no-repeat;
	}

	.page-id-40 .tfb-page-hero--sponsors .tfb-page-hero__inner {
		position: relative;
		z-index: 1;
	}
}


/* ===== Header-Band: Breite des Layouts statt Artikelbreite ===== */
.tfb-page-head-wrap {
	max-width: var(--tfb-max);
	margin: 0 auto;
	padding: 24px 24px 0;
}

.tfb-page-head {
	margin: 0;
}

@media (min-width: 769px) {
	.tfb-page-head-wrap {
		padding: 36px 24px 0;
	}
}

@media (max-width: 768px) {
	.tfb-page-head-wrap {
		padding: 20px 18px 0;
	}
}

/* ===== Social-Icons: nur einmal in der Leiste, im Klappmenue mittig ===== */
.tfb-social--drawer {
	display: none;
}

@media (max-width: 1199px) {
	.tfb-social--drawer {
		display: flex;
	}
}

/* ===== Desktop: Untermenues erst beim Aufklappen ins Layout ===== */
@media (min-width: 1200px) {
	.tfb-menu .sub-menu {
		display: none;
	}

	.tfb-menu li:hover > .sub-menu,
	.tfb-menu li:focus-within > .sub-menu {
		display: block;
	}
}

/* ===== Menueuebersichten: Header-Bild randlos wie auf der Galerie ===== */
body:is(.page-id-287, .page-id-1530, .page-id-1527, .page-id-1528, .page-id-1529, .page-id-1614) .tfb-page-head-wrap {
	max-width: none;
	margin: 0;
	padding: 0;
}

body:is(.page-id-287, .page-id-1530, .page-id-1527, .page-id-1528, .page-id-1529, .page-id-1614) .tfb-page-head {
	position: relative;
	margin: 0;
	padding: 56px 24px;
	border-radius: 0;
	overflow: hidden;
	text-align: center;
	background:
		linear-gradient(180deg, rgba(7, 44, 78, .18), rgba(7, 44, 78, .42)),
		url("https://www.tf-birkenhard.de/wp-content/uploads/2026/11/hero-drohne.jpg") center 42% / cover no-repeat;
}

body:is(.page-id-287, .page-id-1530, .page-id-1527, .page-id-1528, .page-id-1529, .page-id-1614) .tfb-page-head .tfb-page-title {
	display: block;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: #fff;
	font-size: clamp(32px, 5vw, 48px);
	text-shadow: 0 2px 14px rgba(4, 22, 46, .45);
}

@media (min-width: 769px) {
	body:is(.page-id-287, .page-id-1530, .page-id-1527, .page-id-1528, .page-id-1529, .page-id-1614) .tfb-page-head {
		padding: 92px 24px;
	}
}

/* ===== Buchungsleiste mittig, solange das Klappmenue aktiv ist ===== */
@media (min-width: 768px) and (max-width: 1199px) {
	.tfb-topbar__inner {
		justify-content: center;
	}
}

/* ---------- Kategorie-Label auf News-Karten ---------- */

.tfb-card__cat {
	margin: 0 0 8px;
	line-height: 1;
}

.tfb-card__cat a {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	background: var(--tfb-accent-light);
	color: var(--tfb-blue-dark);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.tfb-card__cat a:hover {
	background: var(--tfb-blue);
	color: var(--tfb-white);
}

/* ---------- Link zum Archiv unter den Startseiten-Karten ---------- */

.tfb-archive-link {
	margin: 28px 0 0;
	text-align: center;
}

.tfb-archive-link a {
	color: var(--tfb-blue);
	font-weight: 600;
	text-decoration: none;
}

.tfb-archive-link a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tfb-archive-nav {
	padding: 32px 0 0;
}

/* ---------- News-Karten innerhalb einer Seite (Archiv) ---------- */
/* Die Klappkarten-Regeln oben gelten nur fuer section.tfb-card, damit die
   News-Karten im Archiv normal aussehen. */

.tfb-entry .tfb-cards a {
	color: inherit !important;
	text-decoration: none;
}

.tfb-entry .tfb-cards a:hover {
	color: var(--tfb-blue) !important;
}

.tfb-entry .tfb-card__cat a,
.tfb-entry .tfb-card__cat a:hover {
	text-decoration: none;
}

.tfb-entry .tfb-card__cat a {
	color: var(--tfb-blue-dark) !important;
}

.tfb-entry .tfb-card__cat a:hover {
	background: var(--tfb-blue);
	color: var(--tfb-white) !important;
}

.tfb-entry .tfb-cards .tfb-btn,
.tfb-entry .tfb-cards .tfb-btn:hover {
	color: var(--tfb-white) !important;
	text-decoration: none;
}

.tfb-entry .tfb-card__thumb img {
	margin: 0;
	border-radius: 0;
}

.tfb-entry .tfb-cards + .tfb-archive-nav,
.tfb-entry .tfb-archive-nav {
	padding-bottom: 0;
}
/* === Kontaktkarten: mehr Abstand, kein Ueberlappen === */
.tfb-board__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 32px 36px;
	align-items: start;
}

.tfb-board__grid > .tfb-person {
	min-width: 0;
}

.tfb-person {
	padding: 24px 26px;
	overflow-wrap: anywhere;
}

.tfb-person .tfb-role {
	max-width: 100%;
	margin-bottom: 8px;
	line-height: 1.35;
}

.tfb-person h3 {
	margin: 0 0 10px;
	line-height: 1.3;
}

.tfb-person a {
	display: block;
	margin-top: 2px;
	line-height: 1.6;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.tfb-person a + a {
	margin-top: 4px;
}

@media (max-width: 900px) {
	.tfb-board__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}
