/* ==========================================================================
   Header & Footer „Fachausstellung 2027"
   Vorlage: Claude Design „Startseite Städtetag 2027" (Desktop, Header hell
   mit Topbar) und „Startseite Mobil". Alles ist unter .stf-header /
   .stf-footer gekapselt – Elementor-Seiteninhalte bleiben unberührt.
   ========================================================================== */

.stf-header,
.stf-footer {
	--stf-ink: #22211f;
	--stf-gold: #b08d46;
	--stf-gold-dark: #8a6a24;
	--stf-gold-light: #d9b463;
	--stf-sand: #f4f1ea;
	--stf-muted: #5d5a54;
	--stf-line: rgba(34, 33, 31, 0.12);
	--stf-wrap: 1240px;
	--stf-pad: 32px;

	font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	-webkit-font-smoothing: antialiased;
	color: var(--stf-ink);
}

.stf-header *,
.stf-footer * {
	box-sizing: border-box;
}

.stf-header ul,
.stf-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stf-wrap {
	max-width: var(--stf-wrap);
	margin: 0 auto;
	padding-left: var(--stf-pad);
	padding-right: var(--stf-pad);
}

.stf-header .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* --- Schriftzug ----------------------------------------------------------- */

.stf-brand,
.stf-brand:hover,
.stf-brand:focus {
	display: inline-flex;
	flex-direction: column;
	line-height: 1;
	text-decoration: none;
}

.stf-brand__top {
	font-family: 'Archivo', 'Arial Black', sans-serif;
	font-weight: 800;
	font-size: 21px;
	letter-spacing: 0.12em;
	color: var(--stf-ink);
}

.stf-brand__bottom {
	font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	font-weight: 600;
	font-size: 31px;
	letter-spacing: 0.02em;
	color: var(--stf-gold);
}

.stf-brand--footer .stf-brand__top {
	font-size: 19px;
	color: #ffffff;
}

.stf-brand--footer .stf-brand__bottom {
	font-size: 28px;
	color: var(--stf-gold-light);
}

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

.stf-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #ffffff;
	box-shadow: 0 1px 0 var(--stf-line);
}

.admin-bar .stf-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.stf-topbar {
	background: var(--stf-sand);
	border-bottom: 1px solid rgba(34, 33, 31, 0.08);
}

.stf-topbar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 22px;
	padding-top: 9px;
	padding-bottom: 9px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--stf-muted);
}

.stf-topbar__menu {
	display: flex;
	gap: 22px;
}

.stf-header .stf-topbar__menu a {
	color: var(--stf-muted);
	text-decoration: none;
}

.stf-header .stf-topbar__menu a:hover,
.stf-header .stf-topbar__menu a:focus-visible {
	color: var(--stf-ink);
}

.stf-header__main {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 40px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.stf-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px 22px;
	margin-left: auto;
	min-width: 0;
}

.stf-nav__menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px 22px;
}

.stf-nav__menu > li {
	position: relative;
}

.stf-header .stf-nav__menu a {
	display: block;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--stf-ink);
	text-decoration: none;
	transition: color 0.15s ease;
}

/* Aktiv: echte Unterseiten über WordPress (current-menu-item), Anker-Links nur per Scrollposition (.is-current, stf-header.js) */
.stf-header .stf-nav__menu a:hover,
.stf-header .stf-nav__menu a:focus-visible,
.stf-header .stf-nav__menu .current-menu-item > a:not([href*="#"]),
.stf-header .stf-nav__menu .current-menu-ancestor > a:not([href*="#"]),
.stf-header .stf-nav__menu .is-current > a {
	color: var(--stf-gold);
}

/* Untermenüs (Desktop: Dropdown) */
.stf-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -18px;
	z-index: 10;
	min-width: 240px;
	padding: 8px 0;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(34, 33, 31, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.stf-nav__menu li:hover > .sub-menu,
.stf-nav__menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.stf-header .stf-nav__menu .sub-menu a {
	padding: 10px 18px;
	font-size: 13px;
}

/* Button „Stand anfragen" */
.stf-header .stf-cta {
	display: inline-block;
	padding: 13px 22px;
	background: var(--stf-gold);
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.stf-header .stf-cta:hover,
.stf-header .stf-cta:focus-visible {
	background: var(--stf-gold-dark);
	color: #ffffff;
}

/* Burger – überschreibt die Button-Styles aus Hello's reset.css */
.stf-header .stf-burger,
.stf-header .stf-burger:hover,
.stf-header .stf-burger:focus {
	display: none;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 46px;
	height: 46px;
	margin-left: auto;
	padding: 0;
	border: 1px solid rgba(34, 33, 31, 0.18);
	border-radius: 0;
	background: #ffffff;
	cursor: pointer;
}

.stf-header .stf-burger:focus-visible,
.stf-header a:focus-visible {
	outline: 2px solid var(--stf-gold);
	outline-offset: 2px;
}

.stf-footer a:focus-visible {
	outline: 2px solid var(--stf-gold-light);
	outline-offset: 2px;
}

.stf-burger__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--stf-ink);
	transform-origin: center;
	transition: transform 0.22s ease, opacity 0.18s ease;
}

.stf-header.is-open .stf-burger {
	background: var(--stf-ink);
}

.stf-header.is-open .stf-burger__bar {
	background: var(--stf-gold-light);
}

.stf-header.is-open .stf-burger__bar:nth-of-type(2) {
	transform: translateY(7px) rotate(45deg);
}

.stf-header.is-open .stf-burger__bar:nth-of-type(3) {
	opacity: 0;
}

.stf-header.is-open .stf-burger__bar:nth-of-type(4) {
	transform: translateY(-7px) rotate(-45deg);
}

/* --- Header mobil / Tablet -------------------------------------------------- */

@media (max-width: 1024px) {
	.stf-header {
		--stf-pad: 18px;
		box-shadow: 0 1px 0 rgba(34, 33, 31, 0.14);
	}

	.stf-topbar__inner {
		justify-content: center;
		padding-top: 7px;
		padding-bottom: 7px;
		font-size: 11px;
		letter-spacing: 0.1em;
		text-align: center;
	}

	.stf-topbar__nav {
		display: none;
	}

	.stf-header__main {
		flex-wrap: nowrap;
		gap: 14px;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.stf-brand {
		min-width: 0;
	}

	.stf-brand__top {
		font-size: 15px;
	}

	.stf-brand__bottom {
		font-size: 22px;
		letter-spacing: 0;
	}

	.stf-header .stf-burger,
	.stf-header .stf-burger:hover,
	.stf-header .stf-burger:focus {
		display: flex;
	}

	.stf-header.is-open .stf-burger {
		background: var(--stf-ink);
	}

	.stf-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100vh - 110px);
		max-height: calc(100dvh - 110px);
		overflow-y: auto;
		margin: 0;
		padding: 6px 0 14px;
		background: #ffffff;
		border-top: 1px solid rgba(34, 33, 31, 0.1);
		box-shadow: 0 12px 24px rgba(34, 33, 31, 0.12);
	}

	.stf-header.is-open .stf-nav {
		display: flex;
	}

	.stf-nav__menu {
		display: block;
	}

	.stf-header .stf-nav__menu a {
		padding: 15px 18px;
		font-size: 15px;
		letter-spacing: 0.08em;
		border-bottom: 1px solid rgba(34, 33, 31, 0.08);
	}

	.stf-nav__menu .sub-menu {
		position: static;
		min-width: 0;
		padding: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}

	.stf-header .stf-nav__menu .sub-menu a {
		padding-left: 34px;
		font-size: 13px;
	}

	.stf-header .stf-cta {
		margin: 14px 18px 0;
		padding: 16px;
		text-align: center;
		letter-spacing: 0.1em;
	}
}

/* Unter 600px ist die WP-Admin-Leiste nicht mehr fixiert */
@media (max-width: 600px) {
	.admin-bar .stf-header {
		top: 0;
	}
}

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

.stf-footer {
	background: var(--stf-ink);
	color: #a8a29a;
}

.stf-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 44px;
	padding-top: 70px;
	padding-bottom: 30px;
}

.stf-footer__col,
.stf-footer__widget {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.stf-footer__col--brand {
	gap: 14px;
}

.stf-footer .stf-footer__title,
.stf-footer .wp-block-heading {
	margin: 0;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--stf-gold-light);
}

.stf-footer p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #a8a29a;
}

.stf-footer .menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.stf-footer .menu .sub-menu {
	margin-top: 12px;
	padding-left: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* .stf-footer__grid im Selektor: schlägt die Link-Farbe aus dem Elementor-Kit
   (.elementor-kit-403 a), deren CSS nach diesem Stylesheet geladen wird. */
.stf-footer .stf-footer__grid a {
	font-size: 15px;
	line-height: 1.4;
	color: #e6e3dc;
	text-decoration: none;
	transition: color 0.15s ease;
}

.stf-footer .stf-footer__grid a:hover,
.stf-footer .stf-footer__grid a:focus-visible {
	color: var(--stf-gold-light);
}

.stf-footer .stf-footer__grid p a {
	font-size: inherit;
}

.stf-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stf-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 20px;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: 14px;
	color: #8a857c;
}

@media (max-width: 1024px) {
	.stf-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 36px 28px;
		padding-top: 50px;
	}

	.stf-footer__col--brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.stf-footer {
		--stf-pad: 18px;
	}

	.stf-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 26px 16px;
		padding-top: 36px;
		padding-bottom: 26px;
	}

	.stf-brand--footer .stf-brand__top {
		font-size: 15px;
	}

	.stf-brand--footer .stf-brand__bottom {
		font-size: 22px;
	}

	.stf-footer p {
		font-size: 14px;
	}

	.stf-footer .stf-footer__grid a {
		font-size: 14px;
	}

	.stf-footer__bottom-inner {
		flex-direction: column;
		padding-top: 16px;
		font-size: 13px;
	}
}
