.tgHeader {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	transition: transform 0.3s ease;
}

.tgHeader.is-sticky {
	position: fixed;
}

.tgHeader.is-hidden {
	transform: translateY(-100%);
}

.tgHeader__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

@media(min-width: 992px) {
	.tgHeader__inner {
		align-items: flex-start;
	}
}

/* ----- LOGO ----- */

.tgHeader__logo-link {
	display: inline-flex;
	text-decoration: none;
	background: var(--Colors-Blue-Surface);
	padding: 0.75rem 1.5rem;
}

@media(min-width: 768px) {
	.tgHeader__logo-link {
		padding: 1rem 2rem;
	}
}

@media(min-width: 992pxpx) {
	.tgHeader__logo-link {
		border: none;
	}
}

.tgHeader__logo-link img {
	width: 70px;
	height: auto;
}

@media(min-width: 768px) {
	.tgHeader__logo-link img {
		width: 100px;
	}
}

/* ----- MENÜ BUTTON ----- */
.tgNav__open-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	background: none;
	cursor: pointer;
	color: var(--Colors-White);
	font-family: inherit;
	padding: 1rem;
	position: relative;
	right: 0;
	transition: all 0.35s;
	background: var(--Colors-Blue-Surface);
	opacity: 1;
	border: none;
}

@media(min-width: 768px) {
	.tgNav__open-btn {
		margin-right: -2rem;
	}
}

@media(min-width: 992px) {
	.tgNav__open-btn {
		right: 1rem;
		padding: 1rem 0 0;
		background: none;
		opacity: inherit;
		border: none;
		margin-right: unset;
	}
}

@media(min-width: 1600px) {
	.tgNav__open-btn {
		right: -100px;
		position: relative;
	}
}

.tgNav__open-btn:hover {
	opacity: 0.75;
}

.tgNav__open-btn .breadcrumb {
	gap: 12px;
	align-items: center;
	display: none;
}

@media(min-width: 768px) {
	.tgNav__open-btn .breadcrumb {
		display: flex;
	}
}

@media(min-width: 992px) {
	.tgNav__open-btn .breadcrumb {
		color: var(--Colors-Blue-Text);
	}
}

.tgNav__burger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 22px;
}

@media(min-width: 992px) {
	.tgNav__burger {
		gap: 4px;
		width: 16px;
	}
}

.tgNav__burger span {
	display: block;
	height: 1px;
	width: 100%;
	background: currentColor;
	position: relative;
	transition: left 0.35s;
	left: 0;
}

.tgNav__open-btn:hover .tgNav__burger span:nth-child(2), .tgNav__open-btn:focus-visible .tgNav__burger span:nth-child(2) {
	left: -2px;
}

.tgNav__open-btn:hover .tgNav__burger span:nth-child(3), .tgNav__open-btn:focus-visible .tgNav__burger span:nth-child(3) {
	left: -4px;
}

/* ----- MEGA-NAV OVERLAY ----- */
#tgMegaNav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	max-width: 100%;
	
	transform: translateY(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);

	pointer-events: none;
}

/* container-size */
@media(min-width: 1380px) {
	#tgMegaNav {
		max-width: 2000px;
		left: calc((100vw - 1200px) / 2);
	}
}

/* Zustand wenn offen */
#tgMegaNav.is-open {
	transform: translateY(0);
	pointer-events: unset;
}

/* Optional: Backdrop-Animation */
.tgMegaNav__backdrop {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s, visibility 0.35s;
}

.tgMegaNav__backdrop.is-visible {
	opacity: 1;
	visibility: visible;
}

/* ----- PANEL ----- */
.tgMegaNav__panel {
	background: var(--Colors-Blue-Surface);
	color: var(--Colors-White);
	display: flex;
	flex-direction: column;
	padding: 3rem 1rem 1.5rem 1rem;
	transition: transform 0.35s, opacity 0.35s;
}

@media(min-width: 768px) {
	.tgMegaNav__panel {
		padding: 2rem 3rem;
	}
}

@media(min-width: 992px) {
	.tgMegaNav__panel {
		padding: 3rem 4rem;
	}
}

@media(min-width: 1200px) {
	.tgMegaNav__panel {
		padding: 4rem 5rem;
	}
}

/* ----- CLOSE ----- */
.tgMegaNav__close-wrapper {
	position: absolute;
	right: 0;
	top: 0;
}

.tgMegaNav__close {
	align-self: flex-end;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	background: none;
	border: none;
	color: var(--Colors-White);
	font-family: inherit;
	cursor: pointer;
	padding: 1rem;
	transition: opacity 0.35s;
	flex-direction: row-reverse;
}

@media(min-width: 768px) {
	.tgMegaNav__close {
		padding: 20px 30px;
		flex-direction: row;
	}
}

.tgMegaNav__close:hover,
.tgMegaNav__close:focus-visible {
	opacity: 0.65;
}

.tgMegaNav__close span {
	margin: 0;
}

/* ----- INNER GRID ----- */
.tgMegaNav__inner {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

@media(min-width: 768px) {
	.tgMegaNav__inner {
		gap: 30px;
	}
}

/* ----- SECTION: primary + secondary ----- */
.tgMegaNav__section {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media(min-width: 768px) {
	.tgMegaNav__section {
		grid-template-columns: 8fr 4fr;
		gap: 5rem;
	}
}

@media(min-width: 992px) {
	.tgMegaNav__section {
		gap: 5rem;
	}
}

@media(min-width: 1200px) {
	.tgMegaNav__section {
		grid-template-columns: 7fr 5fr;
		gap: 5rem;
	}
}

.tgMegaNav__label {
	opacity: 0.8;
	margin: 0;
}

/* ----- PRIMARY LINKS ----- */
.tgMegaNav__primary-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tgMegaNav__primary-link {
	display: inline-block;
	color: var(--Colors-White);
	text-decoration: none;
	transition: opacity 0.35s;
}

.tgMegaNav__primary-link:hover,
.tgMegaNav__primary-link:focus-visible {
	/*opacity: 0.65;*/
}

/* ----- SECONDARY LINKS ----- */
.tgMegaNav__secondary-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tgMegaNav__secondary-link {
	display: inline-block;
	color: var(--Colors-White);
}

.tgMegaNav__secondary-link:hover,
.tgMegaNav__secondary-link:focus-visible {
	opacity: 1;
}

/* ----- BACKDROP ----- */
.tgMegaNav__backdrop {
	position: fixed;
	inset: 0;
	z-index: 199;
	background: rgba(0, 0, 0, 0.35);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s, visibility 0.35s;
	pointer-events: none;
}

.tgMegaNav__backdrop.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* ----- FOCUS ----- */
.tgMegaNav__close:focus-visible,
.tgMegaNav__primary-link:focus-visible,
.tgMegaNav__secondary-link:focus-visible,
.tgNav__open-btn:focus-visible {
	outline: 2px solid var(--Colors-White);
	outline-offset: 3px;
}