/*
Theme Name: Tanzen in Kiel
Theme URI: https://tanzen-in-kiel.de/
Author: Tanzen in Kiel e.V.
Author URI: https://tanzen-in-kiel.de/
Description: Modernes WordPress Block-Theme für den Tanzverein Tanzen in Kiel e.V. – optimiert für Full Site Editing, Patterns und Performance.
Version: 1.0.10
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tik-theme
Tags: full-site-editing, block-patterns, custom-colors, custom-menu, editor-style, translation-ready, wide-blocks
*/

html,
body {
	max-width: 100%;
	overflow-x: clip;
}

@supports not (overflow-x: clip) {
	html,
	body {
		overflow-x: hidden;
	}
}

/* ==========================================================================
   Button Variations
   ========================================================================== */

/* Secondary Button - Gray style ("Alle anzeigen", "Alle Termine") */
.wp-block-button.is-style-secondary .wp-block-button__link {
	background-color: #404040;
	color: #fff;
	border: 2px solid #404040;
	border-radius: 15px;
	padding: 10px 20px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.wp-block-button.is-style-secondary .wp-block-button__link:hover {
	background-color: #000;
	border-color: #000;
}

/* Pill Button - Filter style */
.wp-block-button.is-style-pill .wp-block-button__link {
	background-color: transparent;
	color: #404040;
	border: 2px solid #EFEFEF;
	border-radius: 25px;
	padding: 8px 18px;
	font-size: 0.9rem;
	font-weight: 500;
	transition: all 0.2s ease;
}

.wp-block-button.is-style-pill .wp-block-button__link:hover,
.wp-block-button.is-style-pill.is-active .wp-block-button__link {
	background-color: #404040;
	color: #fff;
	border-color: #404040;
}

.wp-block-button.is-style-pill.tik-pill-active .wp-block-button__link {
	background-color: var(--wp--preset--color--primary);
	color: #fff;
	border-color: var(--wp--preset--color--primary);
}

/* Active news filter pill highlighting via body class */
body.news-filter-alle     .tik-filter-alle     .wp-block-button__link,
body.news-filter-neuigkeiten .tik-filter-neuigkeiten .wp-block-button__link,
body.news-filter-termine  .tik-filter-termine  .wp-block-button__link,
body.news-filter-berichte .tik-filter-berichte .wp-block-button__link {
	background-color: #404040;
	color: #fff;
	border-color: #404040;
}

/* Suchergebnis-Filter (Alle / Unsere Angebote / Beiträge / Seiten) */
.tik-search-filter {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--50);
}

.tik-search-filter__label {
	margin: 0;
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--small);
}

.tik-search-filter__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tik-search-filter__count {
	opacity: 0.65;
	font-weight: 400;
	margin-left: 4px;
}

.tik-search-filter .tik-pill-empty .wp-block-button__link {
	opacity: 0.45;
}

/* Suchformular auf der Ergebnisseite.
   Der Core setzt Rahmen und Hintergrund über :where(), das hat Spezifität 0
   und wird von den Regeln hier bewusst vollständig ersetzt. */
.wp-block-search.tik-search-form {
	max-width: 640px;
}

.wp-block-search.tik-search-form .wp-block-search__inside-wrapper {
	position: relative;
	background: none;
	border: none;
	padding: 0;
}

.wp-block-search.tik-search-form .wp-block-search__input {
	background: var(--wp--preset--color--light-gray);
	border: none;
	border-radius: 12px;
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--normal);
	line-height: 1.2;
	padding: 20px 130px 20px 20px;
	box-shadow: inset 0 0 0 1px transparent;
	transition: box-shadow 0.2s ease;
}

.wp-block-search.tik-search-form .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--gray);
	opacity: 0.55;
}

.wp-block-search.tik-search-form .wp-block-search__input:focus {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--primary);
}

.wp-block-search.tik-search-form .wp-block-search__button {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	padding: 11px 26px;
	background-color: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	border-radius: 25px;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wp-block-search.tik-search-form .wp-block-search__button:hover {
	background-color: var(--wp--preset--color--gray);
}

/* Ergebniskarten */
.tik-search-card {
	overflow: hidden;
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tik-search-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tik-search-card .wp-block-post-title a {
	color: var(--wp--preset--color--gray);
	text-decoration: none;
}

.tik-search-card .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary);
}

/* Keine Treffer */
.tik-search-empty {
	text-align: center;
}

@media (max-width: 781px) {
	.wp-block-search.tik-search-form .wp-block-search__inside-wrapper {
		display: block;
	}

	.wp-block-search.tik-search-form .wp-block-search__input {
		padding: 18px 16px;
		width: 100%;
	}

	.wp-block-search.tik-search-form .wp-block-search__button {
		position: static;
		transform: none;
		width: 100%;
		margin-top: 10px;
	}
}

/* Beitragsbilder in den Vorschaukarten auf ein einheitliches Format bringen.
   Vorher wurde jedes Bild auf Kartenbreite gestreckt - kleine Logos wurden
   dadurch unscharf, Hochformate uebermaessig hoch. */
.tik-preview-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	/* scale-down statt cover: schneidet nichts ab und vergroessert kleine
	   Bilder nicht. Die Beitragsbilder reichen vom 320px-Logo ueber
	   Querformate bis zum Hochformat-Plakat - cover haette das Plakat
	   zu zwei Dritteln abgeschnitten, contain haette das Logo unscharf
	   hochskaliert. */
	object-fit: scale-down;
	object-position: center;
	display: block;
	background-color: var(--wp--preset--color--light-gray);
	border-radius: 17px;
}

/* Karte auf der Kontaktseite: laedt erst nach Klick, damit ohne Zustimmung
   keine Daten an Google gehen. Ersetzt das frueher automatisch ladende iframe. */
.tik-map-consent {
	position: relative;
	margin-top: 1rem;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--wp--preset--color--light-gray);
	border-radius: 12px;
	overflow: hidden;
	background-color: var(--wp--preset--color--light-gray);
}

.tik-map-consent.is-loaded {
	display: block;
	background: none;
	min-height: 0;
}

.tik-map-consent__inner {
	max-width: 420px;
	padding: var(--wp--preset--spacing--40);
	text-align: center;
}

.tik-map-consent__text {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.tik-map-consent__btn {
	background-color: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	border-radius: 25px;
	padding: 12px 28px;
	min-height: 44px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.tik-map-consent__btn:hover {
	background-color: var(--wp--preset--color--gray);
}

.tik-map-consent__alt {
	margin: var(--wp--preset--spacing--30) 0 0;
	font-size: var(--wp--preset--font-size--small);
}

.tik-map-consent__alt a {
	color: var(--wp--preset--color--gray);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.wp-block-navigation .wp-block-navigation-item a {
	transition: color 0.2s ease;
}

.wp-block-navigation .wp-block-navigation__submenu-container {
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	border: none;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="search"],
select,
textarea {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 1rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #222;
	width: 100%;
	transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
	border-color: #AB1B2E;
	outline: none;
	box-shadow: 0 0 0 2px rgba(171, 27, 46, 0.15);
}

input::placeholder,
textarea::placeholder {
	color: #999;
}

label {
	font-weight: 600;
	font-size: 0.9rem;
	display: block;
	margin-bottom: 0.35rem;
}

/* ==========================================================================
   Card Styles – Termine / Events
   ========================================================================== */

.tik-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tik-card:hover,
.tik-news-card:hover {
	box-shadow: 0 8px 30px rgba(0,0,0,0.12);
	transform: translateY(-2px);
}

.tik-card img {
	width: 100%;
	height: auto;
	display: block;
}

.tik-card-content {
	padding: 1.25rem;
}

/* News full-page filter bar */
.tik-news-full-wrapper {
	padding-top: var(--wp--preset--spacing--60);
}

.tik-news-full-filterbar {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 50px;
	flex-wrap: wrap;
}

.tik-news-full-filterlabel {
	font-size: var(--wp--preset--font-size--normal);
	color: var(--wp--preset--color--gray);
	font-weight: 500;
	margin: 0;
}

.tik-news-full-pills {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.tik-news-card-button {
	margin-top: 0;
}

/* News Preview Grid (Homepage) */
.tik-news-preview-grid {
	column-count: 1;
	column-gap: 40px;
	margin-top: 0;
}

.tik-news-preview-grid .tik-preview-card {
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	margin-bottom: 24px;
	/* Overriding inline flex to inline-block solves column break bugs in some browsers while keeping block flow */
	display: inline-flex !important;
	width: 100%;
}

/* No-image gray card styling */
.tik-preview-card--no-image {
	box-sizing: border-box;
}

.tik-preview-card--no-image .tik-news-card-meta {
	margin-bottom: 8px;
}

.tik-preview-card--no-image h3 {
	margin-top: auto;
}

.tik-news-card-meta {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 300;
	text-transform: uppercase;
	margin-bottom: 18px;
}

.tik-news-card-meta span {
	display: block;
	color: var(--wp--preset--color--gray);
	font-size: 0.9em;
	font-weight: 600;
	text-transform: none;
	margin-top: 0.35rem;
}

.tik-post-event-meta {
	border-radius: 17px;
	color: var(--wp--preset--color--gray);
}

.tik-post-event-meta p {
	margin: 0 0 0.5rem;
}

.tik-post-event-meta p:last-child {
	margin-bottom: 0;
}

.tik-tournament-archive {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--50);
}

.tik-tournament-years {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tik-tournament-year-link {
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 999px;
	color: var(--wp--preset--color--primary);
	display: inline-flex;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	line-height: 1;
	padding: 13px 18px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.tik-tournament-year-link:hover,
.tik-tournament-year-link.is-active {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.tik-tournament-result-list {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	align-items: stretch;
}

.tik-tournament-result-card {
	background: #fff;
	border: none;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tik-tournament-result-card:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
	transform: translateY(-2px);
}

.tik-tournament-result-card h2 {
	color: #1a1a1a;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
}

.tik-tournament-result-card p {
	color: #666;
	font-size: 0.875rem;
	line-height: 1.65;
	margin: 0;
	flex-grow: 1;
}

.tik-tournament-result-eyebrow {
	color: var(--wp--preset--color--primary) !important;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	margin: 0 !important;
	text-transform: uppercase;
}

.tik-tournament-result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 16px;
}

.tik-tournament-result-actions a {
	background: var(--wp--preset--color--primary);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 9px 20px;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
}

.tik-tournament-result-actions a:hover {
	background: #8a1525;
	box-shadow: 0 4px 14px rgba(171, 27, 46, 0.3);
}

.tik-tournament-note {
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--small);
	margin-top: var(--wp--preset--spacing--40);
}

/* Compact overview cards (Übersicht) */
.tik-tournament-result-list--compact {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
	gap: 16px;
}

.tik-tournament-result-list--compact .tik-tournament-result-card {
	padding: 20px 20px 16px;
	gap: 4px;
}

.tik-tournament-result-list--compact .tik-tournament-result-card h2 {
	font-size: 1.35rem;
	font-weight: 800;
	color: #1a1a1a;
}

.tik-tournament-result-list--compact .tik-tournament-result-eyebrow {
	display: none !important;
}

.tik-tournament-result-list--compact .tik-tournament-result-card p {
	font-size: 0.78rem;
	color: #999;
}

.tik-tournament-result-list--compact .tik-tournament-result-actions {
	padding-top: 12px;
}

.tik-tournament-result-list--compact .tik-tournament-result-actions a {
	background: transparent;
	border: 1.5px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
	font-size: 0.75rem;
	padding: 7px 16px;
}

.tik-tournament-result-list--compact .tik-tournament-result-actions a:hover {
	background: var(--wp--preset--color--primary);
	box-shadow: none;
	color: #fff;
}

/* Intro card (Kiel-Pokal Gewinner page) */
.tik-tournament-result-card--intro {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d0a10 100%);
	box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.tik-tournament-result-card--intro p {
	color: rgba(255,255,255,0.85) !important;
	font-size: 1rem !important;
	flex-grow: 0;
}

.tik-kiel-pokal-table {
	margin-top: var(--wp--preset--spacing--50);
	overflow-x: auto;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.tik-kiel-pokal-table table {
	min-width: 600px;
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}

.tik-kiel-pokal-table thead th {
	background: #1a1a1a;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 14px 18px;
	text-align: left;
	text-transform: uppercase;
}

.tik-kiel-pokal-table tbody td {
	border-bottom: 1px solid #f0f0f0;
	color: #333;
	font-size: 0.9rem;
	padding: 12px 18px;
	vertical-align: middle;
}

.tik-kiel-pokal-table tbody tr:last-child td {
	border-bottom: none;
}

.tik-kiel-pokal-table tbody tr:hover td {
	background: #fafafa;
}

.tik-kiel-pokal-section td {
	background: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 10px 18px !important;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.tik-news-preview-grid {
		column-count: 2;
		column-gap: 24px;
	}
	.tik-news-preview-grid .tik-preview-card {
		margin-bottom: 24px;
	}
}

@media (min-width: 1024px) {
	.tik-news-preview-grid {
		column-count: 3;
		column-gap: 24px;
	}
	.tik-news-preview-grid .tik-preview-card {
		margin-bottom: 24px;
	}
}
/* ==========================================================================
    Header
   ========================================================================== */
.wp-site-blocks{
	position: relative;
}
.wp-site-blocks::before {
	content: "";
	background: var(--wp--preset--gradient--light-gradient);
	width: 100vw;
	height: 378px;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
}

.tik-header-main-grid{
	display: grid;
	grid-template-columns: 1fr 160px 1fr;
	gap: 35px;
	align-items: center;
}
.tik-header-main .wp-block-navigation, .tik-header-main .tik-header-main-grid-right > .wp-block-group{
	gap: 2vw;
}

/* Hide mobile elements on desktop */
.mobile-search-trigger { display: none; }
.tik-header-mobile-nav { display: none !important; }
.tik-header-mobile-menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: none;
	align-items: center;
	gap: 10px;
	color: var(--wp--preset--color--primary);
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 600;
	text-decoration: underline;
	padding-right: 35px;
	margin: 0;
}
.tik-header-mobile-menu .tik-header-mobile-menu-toggle{
	padding-right: 0;
}
.tik-header-mobile-menu-toggle:hover {
	text-decoration: none;
}

/* Mobil: Tippflaeche von Menue- und Suchknopf auf die empfohlenen 44px
   bringen. Die Symbole bleiben unveraendert gross, nur der anklickbare
   Bereich waechst - die Knoepfe zentrieren ihren Inhalt bereits. */
@media (max-width: 1350px) {
	.tik-header-mobile-menu-toggle,
	.tik-header-search-btn {
		min-height: 44px;
	}
}
.tik-header-mobile-menu-toggle-icon {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 24px;
}
.tik-header-mobile-menu-toggle-icon span {
	display: block;
	width: 100%;
	height: 3px;
	background: var(--wp--preset--color--primary);
	border-radius: 3px;
	transition: all 0.3s ease;
}
body.mobile-menu-open .tik-header-mobile-menu-toggle-icon span:nth-child(1),
html.has-modal-open .tik-header-mobile-menu-toggle-icon span:nth-child(1) {
	transform: translateY(10.5px) rotate(45deg);
}
body.mobile-menu-open .tik-header-mobile-menu-toggle-icon span:nth-child(2),
html.has-modal-open .tik-header-mobile-menu-toggle-icon span:nth-child(2) {
	opacity: 0;
}
body.mobile-menu-open .tik-header-mobile-menu-toggle-icon span:nth-child(3),
html.has-modal-open .tik-header-mobile-menu-toggle-icon span:nth-child(3) {
	transform: translateY(-10.5px) rotate(-45deg);
}

/* Off-canvas menu styles */
.tik-header-mobile-menu {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 400px;
	height: 100vh;
	background: #fff;
	z-index: 9998;
	padding: 30px 40px 60px;
	box-shadow: -5px 0 30px rgba(0,0,0,0.1);
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	overflow-y: auto;
	overflow-x: hidden;
	display: block; /* Overrides block defaults that might hide it */
}
.tik-header-mobile-menu-top {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-bottom: 40px !important;
	padding-bottom: 30px !important;
	border-bottom: 2px solid #EFEFEF !important;
	height: auto !important;
}
.tik-header-mobile-menu-top .wp-block-image {
	margin: 0;
}
.tik-header-mobile-menu-top .wp-block-image img {
	max-width: 110px;
}
.tik-header-mobile-menu-top .tik-header-mobile-menu-toggle {
	display: flex !important;
}
body.mobile-menu-open .tik-header-mobile-menu {
	transform: translateX(0);
}
.tik-header-mobile-menu .wp-block-navigation {
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

/* Custom Off-canvas Mobile Menu Styling for Native Navigation */
.tik-header-mobile-nav .wp-block-navigation__responsive-container {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: auto !important;
	width: 100% !important;
	max-width: 400px !important;
	height: 100vh !important;
	background: #fff !important;
	z-index: 99999 !important;
	box-shadow: -5px 0 30px rgba(0,0,0,0.1);
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: flex !important;
	visibility: hidden;
	opacity: 1 !important;
}

.tik-header-mobile-nav .wp-block-navigation__responsive-container.is-menu-open {
	transform: translateX(0);
	visibility: visible;
}

/* Ensure the overlay inner content fills the space */
.tik-header-mobile-nav .wp-block-navigation__responsive-dialog,
.tik-header-mobile-nav .wp-block-navigation__responsive-container-content,
.tik-header-mobile-nav .wp-block-navigation__overlay-container {
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
}

/* Ensure the inner group fills height to push footer links to the bottom */
.tik-mobile-menu-overlay-inner {
	height: 100% !important;
	display: flex !important;
	flex-direction: column !important;
	flex-grow: 1 !important;
}

/* Hide WordPress automatic fallback page list in mobile overlay */
.tik-header-mobile-nav .wp-block-navigation__responsive-container-content > ul.wp-block-navigation__container {
	display: none !important;
}

/* Ensure intermediate wrapper fills height to maintain vertical flex chain */
.tik-header-mobile-nav .wp-block-navigation__responsive-close {
	height: 100% !important;
}

/* Hide native navigation close buttons */
.tik-header-mobile-nav .wp-block-navigation__responsive-container-close,
.tik-header-mobile-nav .wp-block-navigation-overlay-close,
.tik-header-mobile-nav .tik-native-close-btn {
	display: none !important;
}

.tik-header-mobile-nav .wp-block-navigation__responsive-dialog {
	background: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.tik-header-mobile-menu .wp-block-navigation,
.tik-header-mobile-nav .wp-block-navigation__responsive-container .wp-block-navigation,
.tik-header-mobile-nav .wp-block-navigation__responsive-container .wp-block-navigation__container {
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 24px !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.tik-header-mobile-menu a,
.tik-header-mobile-nav .wp-block-navigation__responsive-container a {
	font-size: 1.6rem !important;
	font-weight: 700 !important;
	color: var(--wp--preset--color--gray) !important;
	text-decoration: none;
	transition: color 0.2s ease;
}
.tik-header-mobile-menu a:hover,
.tik-header-mobile-nav .wp-block-navigation__responsive-container a:hover {
	color: var(--wp--preset--color--primary) !important;
}

/* Style de-emphasized footer links in mobile menu */
.tik-header-mobile-nav .tik-mobile-menu-footer {
	margin-top: auto !important;
	display: flex !important;
	flex-direction: row !important;
	gap: 20px !important;
	padding-top: 20px !important;
	border-top: 1px solid #EFEFEF;
}
.tik-header-mobile-nav .tik-mobile-menu-footer p {
	margin: 0 !important;
}
.tik-header-mobile-nav .tik-mobile-menu-footer a {
	font-size: 1.4rem !important;
	font-weight: 500 !important;
	color: var(--wp--preset--color--gray) !important;
	opacity: 0.8;
}
.tik-header-mobile-nav .tik-mobile-menu-footer a:hover {
	opacity: 1;
	color: var(--wp--preset--color--primary) !important;
}
.tik-header-main-grid-left .mobile-search-trigger {
	display: none;
}

@media (max-width: 1350px) {
	
	/* Hide desktop elements */
	.tik-header-main-grid-left .wp-block-navigation,
	.tik-header-desktop-right { display: none !important; }
	
	/* Adjust grid for mobile elements */
	.tik-header-main-grid {
		grid-template-columns: 1fr auto 1fr !important;
	}
	.tik-header-main-grid-left { justify-content: flex-start !important; }
	.tik-header-main-grid-right { justify-content: flex-end !important; }
	
	/* Show mobile triggers */
	.tik-header-main-grid-left .mobile-search-trigger {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0;
		background: none;
		border: none;
		color: var(--wp--preset--color--primary);
		cursor: pointer;
		padding-left: 35px;
	}
	.tik-header-mobile-menu-toggle { display: flex; }
	.tik-header-mobile-nav { display: flex !important; }
	.tik-header-mobile-nav .wp-block-navigation__responsive-container-open {
		display: none !important;
	}

	.tik-header-main-grid-left .mobile-search-trigger {
		transform: translateY(-14px);
	}
	.tik-header-main-grid-right .tik-header-mobile-nav,
	.tik-header-main-grid-right .tik-header-mobile-menu-toggle {
		position: relative;
		top: -14px;
	}
	
	.tik-header-main-grid-center-logo .wp-block-image{
		max-width: 120px;
	}
}
@media (max-width: 800px) {
	.tik-header-main-grid-center-logo .wp-block-image{ max-width: 100px; }
}

@media (max-width: 450px) {
	.tik-header-mobile-menu-toggle-text {
		display: none;
	}
	.mobile-search-trigger span {
		display: none;
	}
}

.tik-header-search-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	display: flex;
	align-items: center;
	padding: 0;
	font-family: 'Bricolage Grotesque', sans-serif;
	transition: opacity 0.2s ease;
	font-size: var(--wp--preset--font-size--normal);
	text-decoration: underline;
}

.tik-header-search-btn:hover {
	text-decoration: none;
}

.tik-header-search-btn span {
	font-weight: 600;
	margin-left: 8px;

}
.tik-header-main-grid-center-logo {
	z-index: 2;
}
.tik-header-main-grid-center-logo a{
	padding: 10px;
	background-color: white;
	border-radius: 50%;
}


/* ==========================================================================
    Footer
   ========================================================================== */
	footer.wp-block-template-part{
		margin-top: 0;
	}
	.tik-footer-group-main::before{
		content: "";
		height: 30px;
		background-color: var(--wp--preset--color--primary);
		width: 100%;
		position: absolute;
		top: -36px;
		left: 0;
		z-index: 0;
	}
   .tik-footer-group-main .tik-footer-image{
		position: absolute;
		top: -338px;
		z-index: 0;
		right: 0;
   }
   .tik-footer-column-contact{
			grid-column: span 2;
		}
   @media (max-width: 1024px) {
	.tik-footer-group-main-grid{
			grid-template-columns: repeat(3, minmax(0, 1fr));
		}
		
		.tik-footer-group-main .tik-footer-image{
			max-width: 300px;
			top: -202px;
		}
   }
   @media (max-width: 768px) {
		.tik-footer-group-main .tik-footer-image{
			max-width: 230px;
			top: -155px;
		}
   }
	@media (max-width: 525px) {
		.tik-footer-group-main-grid{
			grid-template-columns: repeat(2, minmax(0, 1fr));
			column-gap: 1.25rem;
		}
		.tik-footer-column-contact{
			grid-row-start: 3;
		}
		.tik-footer-group-main .tik-footer-image{
			max-width: 200px;
			top: -135px;
		}
	}
	@media (max-width: 360px) {
		.tik-footer-group-main-grid{
			grid-template-columns: 1fr;
		}
		.tik-footer-column-contact{
			grid-column: auto;
			grid-row-start: auto;
		}
	}


/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.tik-breadcrumb {
	font-size: 0.85rem;
	color: #666;
}

.tik-breadcrumb a {
	color: #AB1B2E;
	text-decoration: none;
}

.tik-breadcrumb a:hover {
	text-decoration: underline;
}

/* ==========================================================================
   Search Overlay
   ========================================================================== */

/* ==========================================================================
   Search Overlay
   ========================================================================== */

.tik-search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(64, 64, 64, 0.98); /* Dark Gray opacity */
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	padding: 40px;
	border-radius: 0;
}

.tik-search-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.tik-search-overlay .wp-block-search {
	width: 100%;
	max-width: 1000px;
}

.tik-search-overlay .wp-block-search__label {
	color: var(--wp--preset--color--light-gray);
	font-size: var(--wp--preset--font-size--65);
	margin-bottom: var(--wp--preset--spacing--70);
	text-align: center;
}
.tik-search-overlay .wp-block-search__inside-wrapper {
	position: relative;
}

.tik-search-overlay .wp-block-search__input {
	font-size: var(--wp--preset--font-size--normal) !important;
	background: var(--wp--preset--color--light-gray) !important;
	border: 1px solid var(--wp--preset--color--gray) !important;
	color: var(--wp--preset--color--gray) !important;
	text-align: left !important;
	border-radius: 5px !important;
	padding: 25px 15px !important;
	font-weight: 400;
	line-height: 1.2;
}

.tik-search-overlay .wp-block-search__button {
	padding: 10px 20px;
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--light-gray);
	border-radius: 15px;
	border: none;
	cursor: pointer;
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}
.tik-search-overlay .wp-block-search__button::before{
	content: "Suchen";
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 400;
	display: block;
	line-height: 1.2;
}
.tik-search-overlay .wp-block-search__button .search-icon{
	display: none;
}

.tik-search-close {
	position: absolute;
	top: 40px;
	right: 60px;
	color: #fff;
	font-size: 4rem;
	cursor: pointer;
	background: none;
	border: none;
	line-height: 1;
	transition: transform 0.3s ease;
}

.tik-search-close:hover {
	transform: rotate(90deg);
	color: #AB1B2E;
}

body.search-overlay-open {
	overflow: hidden;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.has-primary-border-left {
	border-left: 4px solid #AB1B2E;
}

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

/* Smooth scroll */
html {
	scroll-behavior: smooth;
}

/* Focus visible for accessibility */
:focus-visible {
	outline: 2px solid #AB1B2E;
	outline-offset: 2px;
}

/* ==========================================================================
   Pill Header with Overlapping Logo
   ========================================================================== */

.tik-page-header-pill-container {
	position: relative;
	margin-top: -30px; /* Overlay with the header logo */
	z-index: 5;
	margin-bottom: 2rem;
}
.tik-page-header{

	background: var(--wp--preset--gradient--black-to-red);
}

.tik-page-intro .wp-block-heading {
	margin-top: 0;
}

.tik-page-intro__text {
	margin-top: 0;
	margin-bottom: 0;
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.7;
}

.tik-page-header-pill {
	background: var(--wp--preset--gradient--black-to-red);
	border-radius: 35px;
	padding: 0 60px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: #fff;
	min-height: 120px;
	flex-wrap: wrap;
}

.tik-page-header-pill h1 {
	color: #fff !important;
	font-size: var(--wp--preset--font-size--xl) !important; /* Slightly smaller for 120px height */
	font-weight: 700 !important;
	margin: 0 !important;
	line-height: 1.2;
}
.tik-page-header-pill .wp-block-button{
	width: max-content;
}

/* ── Filter Bar Refinement ─────────────────── */

	.tik-kurse-filters-new {
		padding-bottom: var(--wp--preset--spacing--60);
	}
	
	.tik-filter-top-row {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 20px;
		align-items: flex-start;
		padding-bottom: var(--wp--preset--spacing--50);
	}
	
	.tik-filter-buttons {
		display: flex;
		align-items: center;
		gap: var(--wp--preset--spacing--30);
		flex-wrap: wrap;
		min-width: 0;
	}
	@media (max-width: 840px) {
		.tik-filter-buttons>span{
			width: 100%;
		}
	}
	
	
	.tik-filter-btn {
		background: var(--wp--preset--color--gray);
		color:var(--wp--preset--color--light-gray);
		border: 1px solid var(--wp--preset--color--gray);
		border-radius: 15px;
		padding: 10px 20px;
		font-size: var(--wp--preset--font-size--normal);
		cursor: pointer;
		transition: all 0.2s ease;
		position: relative;
		max-width: 100%;
	}
	
	.tik-filter-btn:hover {
		background: #333;
	}
	
	.tik-filter-btn.active {
		background: #333;
	}
	
	.tik-filter-btn[data-filter="alter"] {
		anchor-name: --anchor-alter;
	}
	
	.tik-filter-btn[data-filter="solo-paar"] {
		anchor-name: --anchor-solo-paar;
	}
	
	.tik-filter-btn[data-filter="level"] {
		anchor-name: --anchor-level;
	}
	
	.tik-filter-list {
		position: absolute;
		position-anchor: var(--anchor-name);
		inset-area: bottom;
		margin-top: 0.5rem;
		background: white;
		border-radius: 12px;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
		padding: 0.5rem;
		min-width: 180px;
		max-width: min(280px, calc(100vw - 2rem));
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, visibility 0.2s ease;
		z-index: 100;
	}
	
	.tik-filter-list.show {
		opacity: 1;
		visibility: visible;
	}
	
	.tik-filter-list[data-dropdown="alter"] {
		--anchor-name: --anchor-alter;
	}
	
	.tik-filter-list[data-dropdown="solo-paar"] {
		--anchor-name: --anchor-solo-paar;
	}
	
	.tik-filter-list[data-dropdown="level"] {
		--anchor-name: --anchor-level;
	}
	
	.tik-filter-list a {
		display: block;
		padding: 0.6rem 1rem;
		color: #333;
		text-decoration: none;
		border-radius: 8px;
		transition: background 0.2s ease;
	}
	
	.tik-filter-list a:hover {
		background: #f5f5f5;
	}
	
	.tik-filter-sort {
		background: var(--wp--preset--color--gray);
		color: var(--wp--preset--color--light-gray);
		border: 1px solid var(--wp--preset--color--gray);
		border-radius: 15px;
		padding: 10px 20px;
		display: flex;
		align-items: center;
		gap: 1rem;
		cursor: pointer;
		font-size: var(--wp--preset--font-size--normal);
		position: relative;
		transition: all 0.2s ease;
		max-width: 100%;
	}
	
	.tik-filter-sort:hover {
		background: #333;
	}
	
	.tik-filter-sort.active {
		background: #333;
	}
	
	.tik-filter-sort[data-filter="sort"] {
		anchor-name: --anchor-sort;
	}
	
	.tik-filter-list[data-dropdown="sort"] {
		--anchor-name: --anchor-sort;
	}
	
	.tik-filter-active-tags {
		display: flex;
		align-items: center;
		gap: var(--wp--preset--spacing--30);
		flex-wrap: wrap;
		margin:0;
	}
	.tik-filter-active-tags>a:hover{
		color: var(--wp--preset--color--primary) !important;
	}
	
	.tik-active-tag {
		background: white;
		border: 2px solid #404040;
		border-radius: 15px;
		padding: 10px 20px;
		font-size: var(--wp--preset--font-size--normal);
		position: relative;
		cursor: pointer;
		text-decoration: none;
		color: inherit;
		display: inline-flex;
		align-items: center;
		gap: 6px;
	}

	.tik-active-tag:hover {
		border-color: var(--wp--preset--color--primary);
		color: inherit;
	}
	
	.tik-active-tag .tag-close {
		background: #404040;
		position: absolute;
		top: -12px;
		right: -12px;
		color: white;
		border-radius: 50%;
		width: 24px;
		height: 24px;
		font-size: 20px;
		line-height: 1;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.tik-active-tag:hover .tag-close {
		background: var(--wp--preset--color--primary);
	}
	
	@supports not (anchor-name: --test) {
		.tik-filter-list {
			position: absolute;
			top: calc(100% + 0.5rem);
			left: 0;
		}
		
		.tik-filter-dropdown {
			position: relative;
		}
	}
/* ── Course Card ────────────────── */

.tik-kurs-card {
	background: #fff;
	border-radius: 25px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	min-width: 0;
}

.tik-kurs-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.tik-card-icon {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-bottom: 10px;
}



.tik-card-title {
	font-size: var(--wp--preset--font-size--big);
	font-weight: 700;
	color: var(--wp--preset--color--gray);
	margin: 0;
	line-height: 1.2;
	padding-bottom: 10px;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.tik-card-link {
	text-decoration: none;
	color: inherit;
}

.tik-card-link::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
}

.tik-card-highlight {
	color: var(--wp--preset--color--primary);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	margin: 0;
	padding-bottom: 6px;
	overflow-wrap: anywhere;
}

.tik-card-desc {
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3;
	font-weight: 400;
	margin: 0;
	overflow-wrap: anywhere;
}



/* ── Course Grid Layout ──────────────── */

.tik-kurse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(250px, min(100%, calc(25% - 24px))), 1fr)); /* max 4 columns */
    gap: var(--wp--preset--spacing--50);
	min-width: 0;
}

.tik-kurse-container{
	background: var(--wp--preset--color--light-gray);

	width: 100%;
	overflow-x: clip;
}
.tik-kurse-container{
	padding-bottom: var(--wp--preset--spacing--90);
}
.tik-kurse-group{
	margin: 0;	
	min-width: 0;
}
.tik-kurse-group .group-inner{
	padding-top: var(--wp--preset--spacing--80);
}
.tik-kurse-group-title{
	margin:0;
	padding-bottom: var(--wp--preset--spacing--60);
}

/* Global Button Radius Override */
.wp-block-button__link {
	border-radius: 15px !important;
}

/* Footer Styling Refinement */
.tik-footer-column ul {
	list-style: none !important;
	padding-left: 0 !important;
	margin: 0 !important;
}

.tik-footer-column h4 {
	font-size: var(--wp--preset--font-size--footer) !important;
	font-weight: 700 !important;
	line-height: 38px !important;
	margin-bottom: var(--wp--preset--spacing--20) !important;
	color: #fff !important;
}

.tik-footer-column li,
.tik-footer-column a,
.tik-footer-column p {
	font-size: var(--wp--preset--font-size--footer) !important;
	line-height: 38px !important;
	color: #efefef !important;
	
}
.tik-footer-column a{
	text-decoration: underline from-font !important;
	text-decoration-color: var(--wp--preset--color--light-gray) !important;
}
.tik-footer-column a:hover {
	color: var(--wp--preset--color--primary) !important;
	text-decoration-color: var(--wp--preset--color--primary) !important;
}

.tik-footer-legal a{
	text-decoration: underline;
}

/* ==========================================================================
   Trainer Card Styles
   ========================================================================== */

.tik-trainer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2.5rem 2rem;
	margin-top: 3rem;
}


.tik-trainer-first-aid-legend {
	padding-top: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--gray);
	font-size: 0.95rem;
	font-style: italic;
	margin: 0;
	text-align: center;
}

.tik-trainer-first-aid-legend img,
.tik-trainer-first-aid img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	flex: 0 0 auto;
}

.tik-trainer-card {
	background: #fff;
	border-radius: 12px;
	padding: 2.5rem 1.75rem;
	text-align: center;
	box-shadow: 0 4px 20px rgba(0,0,0,0.02);
	border: 1px solid rgba(0,0,0,0.04);
	transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.tik-trainer-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 15px 35px rgba(171, 27, 46, 0.08);
	border-color: rgba(171, 27, 46, 0.15);
}

.tik-trainer-image-container {
	position: relative;
	width: 150px;
	height: 150px;
	margin-bottom: 1.5rem;
}

.tik-trainer-image-container img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	filter: grayscale(100%);
	transition: all 0.4s ease;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tik-trainer-card:hover .tik-trainer-image-container img {
	filter: grayscale(0%);
	transform: scale(1.05);
}

.tik-trainer-placeholder {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--wp--preset--color--off-white);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.tik-trainer-name {
	font-family: var(--wp--preset--font-family--bricolage);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--wp--preset--color--gray);
	margin: 0 0 0.75rem 0;
	line-height: 1.3;
	transition: color 0.3s ease;
}

.tik-trainer-card:hover .tik-trainer-name {
	color: var(--wp--preset--color--primary);
}

.tik-trainer-role,
.tik-trainer-qualification {
	color: var(--wp--preset--color--primary);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.45;
	margin: 0 0 0.75rem 0;
}

.tik-trainer-qualification {
	color: var(--wp--preset--color--gray);
	font-weight: 600;
}

.tik-trainer-first-aid {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	color: var(--wp--preset--color--gray);
	font-size: 0.85rem;
	line-height: 1.35;
	margin: 0 0 0.75rem 0;
}

.tik-trainer-bio {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #666;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: all 0.3s ease;
}

.tik-trainer-bio p {
	font-size: 0.95rem !important;
	line-height: 1.6 !important;
	margin: 0 0 0.5rem 0 !important;
}

.tik-trainer-bio p:last-child {
	margin-bottom: 0 !important;
}

.tik-trainer-card:hover .tik-trainer-bio {
	-webkit-line-clamp: unset;
	overflow: visible;
}

@media (max-width: 600px) {
	.tik-trainer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem 1rem;
	}

	.tik-trainer-card {
		padding: 1.5rem 1rem;
	}

	.tik-trainer-image-container {
		width: 110px;
		height: 110px;
		margin-bottom: 1rem;
	}
	
	.tik-trainer-name {
		font-size: 1.125rem;
	}
}

@media (max-width: 400px) {
	.tik-trainer-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
    Accordion
   ========================================================================== */

.tik-course-content {
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--normal);
	line-height: 1.55;
}

.tik-course-content > * {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.tik-course-content p,
.tik-course-content ul,
.tik-course-content ol {
	margin-top: 0;
	margin-bottom: 1rem;
}

.tik-course-content strong {
	font-weight: 700;
}

.tik-about-team-link {
	border-radius: 35px;
	min-height: 100%;
}

.tik-about-team-link .wp-block-buttons {
	margin-top: auto;
}

@media (max-width: 700px) {
	.tik-about-team-links h2 {
		font-size: 2.25rem !important;
	}
}

.tik-kurstermine-accordion,
.wp-block-accordion {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
}

/* FAQ Accordion Item mimicking Kurstermin style */
.wp-block-accordion-item {
	background: var(--wp--preset--color--light-gray);
	border-radius: 35px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.wp-block-accordion-heading {
	margin: 0 !important;
}

.wp-block-accordion-heading__toggle {
	width: 100%;
	padding: var(--wp--preset--spacing--50);
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	background: none;
	border: none;
	text-align: left;
	font-family: inherit;
}

.wp-block-accordion-heading__toggle-title {
	font-size: var(--wp--preset--font-size--big);
	font-weight: 700;
	color: var(--wp--preset--color--gray);
}

.wp-block-accordion-heading__toggle-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.wp-block-accordion-heading__toggle-icon svg {
	width: 100%;
	height: 100%;
}

/* Open state styling */
.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon {
	transform: rotate(180deg);
}

.wp-block-accordion-panel {
	padding: 0 var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--normal);
	line-height: 1.3;
}

.wp-block-accordion-panel p {
	margin: 0;
}

/* Better Hover Animation */
.wp-block-accordion-item {
	transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.wp-block-accordion-item:hover {
	background-color: #fff;
	box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.wp-block-accordion-heading__toggle-title {
	transition: color 0.3s ease;
	text-decoration: none;
}

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-icon {
	transform: scale(1.08);
}

.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon {
	transform: rotate(180deg);
}

.wp-block-accordion-item.is-open:hover .wp-block-accordion-heading__toggle-icon {
	transform: rotate(180deg) scale(1.08);
}

.tik-kurstermin-item {
	background: var(--wp--preset--color--light-gray);
	border-radius: 35px;
	overflow: hidden;
	transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.tik-kurstermin-item:hover {
	background-color: #fff;
	box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.tik-kurstermin-item[open] {
	box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.tik-kurstermin-summary {
	padding: var(--wp--preset--spacing--50);
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.tik-kurstermin-item[open] .tik-kurstermin-summary{
	padding-bottom: 0;
}

.tik-kurstermin-summary::-webkit-details-marker {
	display: none;
}

.tik-kurstermin-summary::marker {
	display: none;
	content: '';
}

.tik-kurstermin-summary-left {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex: 1;
	min-width: 0;
}

.tik-kurstermin-icon {
	width: 76px;
	height: 76px;
	min-width: 76px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tik-kurstermin-icon img {
	width: 76px;
	height: 76px;
	
}

.tik-kurstermin-info {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.tik-kurstermin-title {
	font-size: var(--wp--preset--font-size--big);
	font-weight: 700;
	color: var(--wp--preset--color--gray);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin:0;
	padding-bottom: 10px;	
	transition: color 0.3s ease;
}

.tik-kurstermin-item:hover .tik-kurstermin-title {
	color: var(--wp--preset--color--primary);
}

.tik-kurstermin-schedule {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	
}

.tik-kurstermin-meta {
	font-size: var(--wp--preset--font-size--normal);
	color: var(--wp--preset--color--gray);
	line-height: 1.35;
}

/* Termine ohne weitere Beschreibung: nicht aufklappbar. */
.tik-kurstermin-item.is-static .tik-kurstermin-summary {
	cursor: default;
}

.tik-kurstermin-toggle {
	flex-shrink: 0;
	margin-left: 1rem;
}

.tik-kurstermin-chevron {
	transition: transform 0.3s ease;
}

.tik-kurstermin-summary:hover .tik-kurstermin-chevron {
	transform: scale(1.08);
}

.tik-kurstermin-item[open] .tik-kurstermin-chevron {
	transform: rotate(180deg);
}

.tik-kurstermin-item[open] .tik-kurstermin-summary:hover .tik-kurstermin-chevron {
	transform: rotate(180deg) scale(1.08);
}

.tik-kurstermin-content {
	padding: 15px var(--wp--preset--spacing--50) var(--wp--preset--spacing--50) calc(var(--wp--preset--spacing--50) + 76px + 1.25rem); /* Align with text after icon */
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--normal);
	line-height: 1.3;
}

.tik-kurstermin-content p {
	margin: 0;
}

.tik-kurstermin-trainer{
	padding-bottom: 10px;
}

.tik-kurstermin-hinweis {
	padding-top: 15px;
}

@media (max-width: 600px) {
	.tik-kurstermin-summary {
		padding: 1rem 1.25rem;
	}

	.tik-kurstermin-icon {
		width: 44px;
		height: 44px;
		min-width: 44px;
	}

	.tik-kurstermin-icon img {
		width: 26px;
		height: 26px;
	}

	.tik-kurstermin-title {
		font-size: 0.95rem;
	}

	.tik-kurstermin-schedule {
		font-size: 0.85rem;
	}

	.tik-kurstermin-content {
		padding-left: 1.25rem;
	}
}

/* ==========================================================================
   Hero Slider Refinements (Scroll Snap)
   ========================================================================== */
.tik-hero-slider-wrapper {
    position: relative;
    overflow: hidden;
}
.tik-hero-slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    scroll-behavior: smooth; /* Native smooth sliding */
    gap: 0 !important; /* Prevent gaps from themes */
}
.tik-hero-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.tik-hero-slider-track > .wp-block-cover {
    flex: 0 0 100%;
    scroll-snap-align: center; /* Snap perfectly */
    max-width: 100% !important;
}

.tik-hero-cover {
    position: relative;
}
.tik-hero-slider-arrows {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}
.tik-slider-arrow {
    width: 36px;
    height: 36px;
    background-color: #EFEFEF;
    color: var(--wp--preset--color--gray);
    border: none;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.tik-slider-arrow:hover {
    background-color: var(--wp--preset--color--primary);
    color: white;
    transform: scale(1.05);
}

/* Mobil: Pfeile unter den Slider statt mittig darueber.
   Sonst liegen sie auf dem Knopf "Angebote entdecken" (z-index 10)
   und machen ihn unlesbar sowie mittig nicht anklickbar. */
@media (max-width: 781px) {
	.tik-hero-slider-arrows {
		position: static;
		transform: none;
		justify-content: center;
		margin-top: 14px;
	}

	.tik-slider-arrow {
		width: 44px;
		height: 44px;
	}
}


/* ==========================================================================
   Courses Overview
   ========================================================================== */
.tik-courses-overview{
position: relative;	
}
.tik-courses-overview-image{
	position: absolute;
	right: 0;
	bottom: 0;
	max-width: 50vw;
	width: 100%;
}
@media (max-width: 1300px) {
	.tik-courses-overview-image{
		right:0;
		max-width: 50vw;
		width: 100%;
	}
}
@media (max-width: 768px) {
	.tik-courses-overview-image{
		right: 0;
		max-width: 50vw;
		width: 100%;
	}
}

/* Mittlere Breiten: Bild schmaler, damit es die Buttons nicht überdeckt. */
@media (min-width: 782px) and (max-width: 1100px) {
	.tik-courses-overview-image{
		max-width: 34%;
	}
}

/* Spalten stapeln sich: Bild unter den Buttons, unten bündig mit dem Kasten. */
@media (max-width: 781px) {
	.tik-courses-overview-image{
		position: static;
		display: block;
		float: none;
		width: 70%;
		max-width: 260px;
		margin: var(--wp--preset--spacing--40) auto calc(-1 * var(--wp--preset--spacing--70));
	}
}
/* ==========================================================================
   Trainer Team
   ========================================================================== */
.tik-trainer-content p{
	margin:0;
	font-size: var(--wp--preset--font-size--normal);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.tik-contact-notice {
	background-color: var(--wp--preset--color--light-gray);
	border-left: 5px solid var(--wp--preset--color--primary);
	padding: 1.25rem 1.5rem;
	margin-bottom: 2rem;
}

.tik-contact-notice p {
	margin: 0;
	color: var(--wp--preset--color--primary);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--normal);
	line-height: 1.5;
}

.tik-contact-notice strong {
	font-weight: 800;
}

.tik-contact-social-links {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 1rem;
}

.tik-contact-social-links a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--gray);
	text-decoration: none;
	font-weight: 600;
	font-size: var(--wp--preset--font-size--normal);
	transition: color 0.2s ease;
}

.tik-contact-social-links a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.tik-contact-social-links svg {
	flex-shrink: 0;
	color: var(--wp--preset--color--primary);
}

/* Separator color override for contact sidebar */
.wp-block-column .wp-block-separator.has-primary-background-color {
	background-color: var(--wp--preset--color--primary) !important;
	height: 3px;
	border: none;
	opacity: 1;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

/* ==========================================================================
   Membership Form & Step Indicator
   ========================================================================== */

.tik-membership-form-container {
	width: 100%;
}

.tik-step-indicator-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	position: relative;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* Line between steps */
.tik-step-indicator-wrapper::before {
	content: "";
	position: absolute;
	top: 25px; /* Center of the 50px circle */
	left: 10%;
	right: 10%;
	height: 2px;
	background: #EFEFEF;
	z-index: 0;
}

.tik-step-item {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
}

.tik-step-number {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #EFEFEF;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Bricolage Grotesque', sans-serif;
	font-weight: 800;
	font-size: 1.25rem;
	margin-bottom: 0.75rem !important;
	transition: all 0.3s ease;
	border: 2px solid #EFEFEF;
}

.tik-step-label {
	font-size: 0.95rem;
	font-weight: 700;
	color: #999;
	margin: 0 !important;
	transition: all 0.3s ease;
}

/* Active State */
.tik-step-item.is-active .tik-step-number {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border-color: var(--wp--preset--color--primary);
}

.tik-step-item.is-active .tik-step-label {
	color: var(--wp--preset--color--gray);
}

/* Completed State */
.tik-step-item.is-completed .tik-step-number {
	background: #fff;
	color: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}

.tik-form-content-area {
	background: #fff;
	border-radius: 20px;
	margin-top: 2rem;
}

.membership-form-placeholder {
	border-top: 1px solid #EFEFEF;
	padding-top: 3rem;
}

@media (max-width: 600px) {
	.tik-step-label {
		font-size: 0.8rem;
	}
	.tik-step-number {
		width: 40px;
		height: 40px;
		font-size: 1rem;
	}
	.tik-step-indicator-wrapper::before {
		top: 20px;
	}
}

/* ==========================================================================
   Membership Selection (Step 1)
   ========================================================================== */

.tik-membership-selection {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.tik-selection-item {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	position: relative;
	padding-left: 45px;
	margin-bottom: 0 !important;
	font-weight: 500 !important;
	font-size: 1.1rem !important;
	color: #333;
	line-height: 1.4;
}

/* Hide default radio */
.tik-selection-item input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

/* Custom radio look */
.tik-radio-custom {
	position: absolute;
	top: 3px;
	left: 0;
	height: 26px;
	width: 26px;
	background-color: #fff;
	border: 2px solid #666;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.tik-selection-item:hover input ~ .tik-radio-custom {
	border-color: var(--wp--preset--color--primary);
}

.tik-selection-item input:checked ~ .tik-radio-custom {
	background-color: #fff;
	border-color: #404040;
}

/* Dot inside */
.tik-radio-custom:after {
	content: "";
	position: absolute;
	display: none;
}

.tik-selection-item input:checked ~ .tik-radio-custom:after {
	display: block;
}

.tik-selection-item .tik-radio-custom:after {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #404040;
}

.tik-membership-next-btn a {
	cursor: pointer;
	padding: 12px 40px !important;
}



/* Icon List */
.icon-list, .link-list{
	list-style: none;
	margin: 0;
	padding: 0;
}
.icon-list li, .link-list li{
	margin-bottom: 20px;
	padding-left: 0;
	position: relative;
}
.icon-list li a, .link-list li a{
	text-decoration: underline;
	color: var(--wp--preset--color--primary);
}
.icon-file-text::before{
	content: "";
	display: inline-block;
	width: 26px;
	height: 26px;
	background-image: url(../tik-theme/images/icons/file-text.svg);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.icon-list li a:hover,
.link-list li a:hover{
	text-decoration: none;
} 

/* ==========================================================================
   Vorstandsteam Grid
   ========================================================================== */

.tik-vorstand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
	gap: 3rem;
	margin-top: 2rem;
}

.tik-vorstand-card {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.tik-vorstand-name {
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 800;
	color: var(--wp--preset--color--primary);
	margin: 0;
	order: -1;
}

/* Fotos einer Reihe auf einer Höhe, egal wie viele Zeilen der Name braucht:
   alle Karten teilen sich die drei Zeilen (Name, Foto, Position) des Rasters. */
@supports (grid-template-rows: subgrid) {
	.tik-vorstand-grid {
		row-gap: 0;
		column-gap: 3rem;
	}

	.tik-vorstand-card {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span 3;
		row-gap: 1.5rem;
		justify-items: center;
		margin-bottom: 3rem;
	}

	.tik-vorstand-name {
		grid-row: 1;
		align-self: end;
	}

	.tik-vorstand-photo {
		grid-row: 2;
	}

	.tik-vorstand-position {
		grid-row: 3;
	}
}

.tik-vorstand-photo {
	width: 100%;
	max-width: 280px;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 8px;
}

.tik-vorstand-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tik-vorstand-photo-placeholder {
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tik-vorstand-photo-placeholder .placeholder-content {
	font-size: 4rem;
	font-weight: 800;
	color: #ccc;
}

.tik-vorstand-position {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin: 0;
}

@media (max-width: 768px) {
	.tik-vorstand-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem;
	}
}

@media (max-width: 480px) {
	.tik-vorstand-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* ==========================================================================
   Turnierpaare Grid
   ========================================================================== */

.tik-turnierpaare-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 2.5rem;
	margin-top: 2rem;
	margin-bottom: 3rem;
}

.tik-turnierpaar-card {
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.tik-turnierpaar-card--gast .tik-turnierpaar-name::before {
	content: 'Gast: ';
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.25rem;
}

.tik-turnierpaar-photo {
	width: 100%;
	max-width: 240px;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 12px;
}

.tik-turnierpaar-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tik-turnierpaar-photo--placeholder {
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3.5rem;
	font-weight: 800;
	color: #ccc;
}

.tik-turnierpaar-name {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
	color: var(--wp--preset--color--gray);
	margin: 0;
}

.tik-turnierpaar-klasse {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	margin: 0;
	line-height: 1.4;
}

.tik-turnierpaar-verein {
	font-size: var(--wp--preset--font-size--small);
	color: #888;
	margin: 0;
	font-style: italic;
}

.tik-turnierpaare-section-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-top: 3rem;
	margin-bottom: 0;
	color: var(--wp--preset--color--gray);
}

.tik-turnierpaare-hinweis {
	margin-top: 3rem;
	padding: 1.5rem 2rem;
	background: var(--wp--preset--color--light-gray, #f5f5f5);
	border-radius: 12px;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}

@media (max-width: 768px) {
	.tik-turnierpaare-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}
}

@media (max-width: 480px) {
	.tik-turnierpaare-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Fotoalben / NextGen Gallery Overrides
   ========================================================================== */

/* --- Album Overview (Year list & Gallery list within a year) --- */

.tik-fotoalben-content .wp-block-post-title {
	margin-top: 0;
}

.tik-fotoalben-content .tik-album-intro-text {
	max-width: 860px;
	margin-top: 0;
	margin-right: auto !important;
	margin-bottom: 0;
	margin-left: 0 !important;
	color: var(--wp--preset--color--gray);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.7;
}

/* ---- Root year list (/fotoalben/) — pill buttons, no images ---- */
body.wp-singular.page-template-page-fotoalben:not(.fotoalben-year-view) .ngg-albumoverview {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin: 0;
	padding: 0.5rem 0;
}

body.wp-singular.page-template-page-fotoalben:not(.fotoalben-year-view) .ngg-albumoverview .ngg-album-compact {
	margin: 0 !important;
	padding: 0 !important;
	border: none;
	box-shadow: none;
	background: transparent;
	width: auto;
}

body.wp-singular.page-template-page-fotoalben:not(.fotoalben-year-view) .ngg-albumoverview .ngg-album-compactbox {
	display: none !important;
}

body.wp-singular.page-template-page-fotoalben:not(.fotoalben-year-view) .ngg-albumoverview .ngg-album-compact h4 {
	margin: 0;
}

body.wp-singular.page-template-page-fotoalben:not(.fotoalben-year-view) .ngg-albumoverview .ngg-album-desc {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 7.5rem;
	padding: 0.65rem 2rem;
	border-radius: 999px;
	border: 2px solid var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary) !important;
	background: transparent;
	font-size: 1.05rem;
	font-weight: 700;
	text-decoration: none !important;
	letter-spacing: 0.04em;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
	max-width: none !important;
}

body.wp-singular.page-template-page-fotoalben:not(.fotoalben-year-view) .ngg-albumoverview .ngg-album-compact:hover .ngg-album-desc {
	background: var(--wp--preset--color--primary);
	color: #fff !important;
	box-shadow: 0 4px 16px rgba(171,27,46,0.22);
}

body.wp-singular.page-template-page-fotoalben:not(.fotoalben-year-view) .ngg-albumoverview .ngg-album-gallery-image-counter {
	display: none;
}

/* ---- Year sub-gallery view (/fotoalben/nggallery/YYYY) — single-column list with preview image ---- */
body.fotoalben-year-view .ngg-albumoverview {
	display: flex !important;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
}

body.fotoalben-year-view .ngg-albumoverview .ngg-album-compact {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	gap: 1.5rem;
	padding: 1.1rem 0 !important;
	margin: 0 !important;
	border: none;
	border-bottom: 1px solid var(--wp--preset--color--light-gray);
	box-shadow: none;
	background: transparent;
	width: 100%;
	transition: background 0.15s ease;
}

body.fotoalben-year-view .ngg-albumoverview .ngg-album-compact:last-of-type {
	border-bottom: none;
}

body.fotoalben-year-view .ngg-albumoverview .ngg-album-compact:has(+ br),
body.fotoalben-year-view .ngg-albumoverview .ngg-album-compact:has(+ .ngg-clear) {
	border-bottom: none;
}

body.fotoalben-year-view .ngg-albumoverview .ngg-album-compactbox {
	display: block !important;
	flex: 0 0 160px;
	width: 160px;
	height: 106px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--wp--preset--color--light-gray);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.fotoalben-year-view .ngg-albumoverview .ngg-album-compactbox img,
body.fotoalben-year-view .ngg-albumoverview .ngg-album-compactbox .Thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: none !important;
	margin: 0 !important;
}

body.fotoalben-year-view .ngg-albumoverview .ngg-album-compact h4 {
	flex: 1;
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
}

body.fotoalben-year-view .ngg-albumoverview .ngg-album-desc {
	color: var(--wp--preset--color--base-2) !important;
	text-decoration: none !important;
	max-width: none !important;
	transition: color 0.2s ease;
}

body.fotoalben-year-view .ngg-albumoverview .ngg-album-compact:hover .ngg-album-desc {
	color: var(--wp--preset--color--primary) !important;
}

body.fotoalben-year-view .ngg-albumoverview .ngg-album-compact:hover .ngg-album-compactbox {
	box-shadow: 0 6px 20px rgba(0,0,0,0.14);
	transform: scale(1.02);
}

body.fotoalben-year-view .ngg-albumoverview .ngg-album-gallery-image-counter {
	flex: 0 0 auto;
	font-size: 0.9rem;
	color: #999;
	margin: 0;
	min-width: 6rem;
	text-align: right;
	letter-spacing: 0.02em;
}

/* --- Breadcrumbs --- */
body.wp-singular.page-template-page-fotoalben .ngg-breadcrumbs {
	list-style: none;
	margin: 0 0 1.5rem !important;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	align-items: center;
	font-size: var(--wp--preset--font-size--small);
	text-transform: none;
}

body.wp-singular.page-template-page-fotoalben .ngg-breadcrumbs li {
	float: none;
	padding: 0;
	margin: 0;
}

body.wp-singular.page-template-page-fotoalben .ngg-breadcrumbs li a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

body.wp-singular.page-template-page-fotoalben .ngg-breadcrumbs li a:hover {
	text-decoration: underline;
}

/* --- Photo Gallery (Individual gallery view) --- */
body.wp-singular.page-template-page-fotoalben .ngg-galleryoverview.default-view {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.75rem;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	font-size: inherit !important;
	letter-spacing: inherit !important;
}

body.wp-singular.page-template-page-fotoalben .ngg-gallery-thumbnail-box {
	float: none !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
}

body.wp-singular.page-template-page-fotoalben .ngg-gallery-thumbnail {
	background: transparent;
	border: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 8px;
}

body.wp-singular.page-template-page-fotoalben .ngg-gallery-thumbnail a {
	margin: 0;
	display: block;
	line-height: 0;
}

body.wp-singular.page-template-page-fotoalben .ngg-gallery-thumbnail img {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

body.wp-singular.page-template-page-fotoalben .ngg-gallery-thumbnail:hover img {
	transform: scale(1.03);
	opacity: 0.9;
}

/* --- Pagination --- */
body.wp-singular.page-template-page-fotoalben .ngg-navigation,
body.wp-singular.page-template-page-fotoalben .ngg-pagination {
	display: flex !important;
	justify-content: center;
	align-items: center;
	gap: 0.4rem;
	margin-top: 2.5rem;
	margin-bottom: 1rem;
	flex-wrap: nowrap;
}

body.wp-singular.page-template-page-fotoalben .ngg-navigation a,
body.wp-singular.page-template-page-fotoalben .ngg-pagination a,
body.wp-singular.page-template-page-fotoalben .ngg-navigation span,
body.wp-singular.page-template-page-fotoalben .ngg-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 8px;
	background: #f2f2f2;
	color: #444;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.95rem;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

body.wp-singular.page-template-page-fotoalben .ngg-navigation a:hover,
body.wp-singular.page-template-page-fotoalben .ngg-pagination a:hover {
	background: var(--wp--preset--color--primary);
	color: #fff;
}

body.wp-singular.page-template-page-fotoalben .ngg-navigation span.current,
body.wp-singular.page-template-page-fotoalben .ngg-pagination span.current {
	background: var(--wp--preset--color--primary);
	color: #fff;
	cursor: default;
}

body.wp-singular.page-template-page-fotoalben .ngg-navigation a.prev,
body.wp-singular.page-template-page-fotoalben .ngg-navigation a.next {
	font-size: 1rem;
	padding: 0 16px;
	letter-spacing: 0;
}

/* --- Suppress PHP warnings on gallery pages --- */
body.wp-singular.page-template-page-fotoalben > br,
body.wp-singular.page-template-page-fotoalben > b,
body.page-template-page-fotoalben > br,
body.page-template-page-fotoalben > b {
	display: none !important;
}

@media (max-width: 600px) {
	body.wp-singular.page-template-page-fotoalben .ngg-albumoverview.default-view {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
		gap: 1rem;
	}

	body.wp-singular.page-template-page-fotoalben .ngg-galleryoverview.default-view {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
		gap: 0.5rem;
	}

	body.wp-singular.page-template-page-fotoalben .ngg-album-compact h4 {
		font-size: var(--wp--preset--font-size--medium);
	}
}

/* ==========================================================================
   Probemonat-Anmeldung (in den aufgeklappten Gruppen)
   ========================================================================== */

.tik-probe {
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(0,0,0,0.08);
	max-width: 34rem;
}

.tik-probe-title {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 800;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.25rem;
}

.tik-probe-intro {
	margin: 0 0 1rem !important;
}

.tik-probe-form {
	display: grid;
	gap: 0.85rem;
}

.tik-probe-field {
	display: grid;
	gap: 0.3rem;
}

.tik-probe-field label {
	font-weight: 600;
}

.tik-probe-optional {
	font-weight: 400;
	opacity: 0.7;
}

.tik-probe-field select,
.tik-probe-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 1rem;
	border: 1px solid rgba(0,0,0,0.2);
	border-radius: 12px;
	background: #fff;
	font: inherit;
	color: inherit;
}

.tik-probe-field select:focus,
.tik-probe-field input:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
}

.tik-probe-check {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.95rem;
}

.tik-probe-check input {
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.tik-probe-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tik-probe-button {
	justify-self: start;
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: 0;
	border-radius: 35px;
	padding: 0.85rem 2rem;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.tik-probe-button:hover:not(:disabled) {
	background: #8d1626;
}

.tik-probe-button:disabled {
	opacity: 0.6;
	cursor: default;
}

.tik-probe-status {
	margin: 0 !important;
	min-height: 1.3em;
	font-weight: 600;
}

.tik-probe-status.is-ok {
	color: #1e6b34;
}

.tik-probe-status.is-error {
	color: #b32d2e;
}

.tik-probe-kontakt a {
	color: var(--wp--preset--color--primary);
	font-weight: 600;
}
