/* ============================================
   SEENPLATTE DIGITAL SUITE – HEADER STYLING
   Autor: Seenplatte DMO
   Datum: 2026-06-07
   Purpose: Responsive, Accessible Header Layout
   ============================================ */

/* Aliase für GenerateBlocks / GP-Element (Spacing & Typo) */
.site-header {
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 1.5rem;
	--spacing-lg: 2rem;
	--font-primary: var(--body-font, "Roboto", sans-serif);
	--font-h3: var(--fs-headline-h5, 1.875rem);
	--font-h4: var(--fs-headline-h6, 1.125rem);
	--font-size-base: var(--fs-body, 1rem);
	--font-size-sm: var(--text-s, 0.9375rem);
	--font-size-xs: var(--text-xs, 0.8125rem);
}

/* ============================================
   MAIN HEADER CONTAINER
   ============================================ */

.site-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: var(--accent);
	color: var(--accent-contrast);
	padding: var(--spacing-lg);
	gap: var(--spacing-lg);
	flex-wrap: wrap;
}

/* ============================================
   LEFT COLUMN: BRANDING (LOGO + TITLE)
   ============================================ */

.site-branding {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
	flex: 0 1 auto;
}

.site-logo {
	display: block;
	line-height: 1;
	flex-shrink: 0;
}

.site-logo img {
	width: 80px;
	height: auto;
	display: block;
	margin: 0;
}

.site-identity {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.site-title {
	font-family: var(--font-condensed);
	font-size: var(--font-h3);
	font-weight: 600;
	margin: 0;
	line-height: 1.2;
	color: var(--accent-contrast);
}

.site-description {
	font-family: var(--font-primary);
	font-size: var(--font-size-sm);
	margin: 0;
	color: var(--accent-contrast);
	opacity: 0.85;
	line-height: 1.4;
}

/* ============================================
   RIGHT COLUMN: NAVIGATION
   ============================================ */

.site-navigation {
	display: flex;
	flex-direction: row;
	gap: var(--spacing-lg);
	align-items: center;
	flex: 0 1 auto;
}

.site-navigation a {
	color: var(--accent-contrast);
	text-decoration: none;
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	transition: opacity 0.2s ease;
	position: relative;
	padding: 0.5rem 0;
}

.site-navigation a:hover {
	opacity: 0.8;
}

.site-navigation a:active {
	opacity: 0.7;
}

.site-navigation a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
	border-radius: 2px;
}

/* ============================================
   RESPONSIVE: TABLET (768px max)
   ============================================ */

@media (max-width: 768px) {
	.site-header {
		flex-direction: column;
		align-items: flex-start;
		padding: var(--spacing-md);
		gap: var(--spacing-md);
	}

	.site-navigation {
		flex-direction: column;
		width: 100%;
		gap: var(--spacing-sm);
		align-items: flex-start;
	}

	.site-navigation a {
		font-size: var(--font-size-sm);
	}
}

/* ============================================
   RESPONSIVE: MOBILE (480px max)
   ============================================ */

@media (max-width: 480px) {
	.site-header {
		padding: var(--spacing-sm);
		gap: var(--spacing-sm);
	}

	.site-branding {
		gap: var(--spacing-sm);
	}

	.site-logo img {
		width: 64px;
	}

	.site-title {
		font-size: var(--font-h4);
	}

	.site-description {
		font-size: var(--font-size-xs);
	}

	.site-navigation {
		gap: var(--spacing-xs);
	}

	.site-navigation a {
		font-size: var(--font-size-xs);
		padding: 0.35rem 0;
	}
}

/* ============================================
   PRINT MEDIA (optional)
   ============================================ */

@media print {
	.site-header {
		background: transparent;
		color: #000;
		padding: 0;
		margin-bottom: 1rem;
	}

	.site-navigation {
		display: none;
	}
}

/* ============================================
   GB PRO SITE HEADER — Digital Suite Hub
   (GP Element 1657, blog 10)
   ============================================ */

body.tvmse-hub-page .site-header.gb-site-header {
	display: block;
	padding: 0 !important;
	flex-wrap: unset;
	background-color: var(--accent);
	color: var(--accent-contrast);
}

body.tvmse-hub-page .tvmse-suite-site-header .site-header__inner {
	width: 100%;
}

body.tvmse-hub-page .tvmse-suite-site-header .site-title a {
	color: inherit;
	text-decoration: none;
}

body.tvmse-hub-page .tvmse-suite-site-header .site-title a:hover,
body.tvmse-hub-page .tvmse-suite-site-header .site-title a:focus-visible {
	opacity: 0.9;
}

body.tvmse-hub-page .tvmse-suite-site-header .gb-menu-link,
body.tvmse-hub-page .tvmse-suite-site-header .gb-navigation a {
	color: var(--accent-contrast);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

body.tvmse-hub-page .tvmse-suite-site-header .gb-menu-link:hover,
body.tvmse-hub-page .tvmse-suite-site-header .gb-navigation a:hover {
	opacity: 0.85;
}

body.tvmse-hub-page .tvmse-suite-site-header .gb-menu-link:focus-visible,
body.tvmse-hub-page .tvmse-suite-site-header .gb-navigation a:focus-visible {
	outline: 2px solid var(--accent-contrast);
	outline-offset: 4px;
	border-radius: 2px;
}

body.tvmse-hub-page .tvmse-suite-site-header .menu-item.tvmse-nav-meta > a,
body.tvmse-hub-page .tvmse-suite-site-header .menu-item.tvmse-nav-meta .gb-menu-link {
	opacity: 0.88;
	font-size: var(--text-s, 0.9375rem);
}

body.tvmse-hub-page .tvmse-suite-site-header .gb-menu-toggle {
	color: var(--accent-contrast);
}

body.tvmse-hub-page .tvmse-suite-site-header .gb-menu-container.gb-menu-container--mobile {
	background-color: var(--accent);
	color: var(--accent-contrast);
}

body.tvmse-hub-page .tvmse-suite-site-header .gb-menu-container.gb-menu-container--mobile .menu-item {
	border-bottom-color: color-mix(in srgb, var(--accent-contrast) 25%, transparent);
}

@media (max-width: 980px) {
	body.tvmse-hub-page .tvmse-suite-site-header .site-header__inner {
		align-items: flex-start;
	}
}

@media (max-width: 768px) {
	body.tvmse-hub-page .site-header.gb-site-header .site-branding {
		flex: 1 1 100%;
	}

	body.tvmse-hub-page .site-header.gb-site-header .site-navigation {
		margin-left: auto;
	}
}
