/*
Theme Name:     Hoffart Neu
Theme URI:      https://hoffart-darmstadt.de
Description:    Generatepress child theme.
Author:         HoffART
Author URI:     https://hoffart-darmstadt.de
Template:       generatepress
Version:        0.1.0
*/

:root {
	--hf-site-width: 1600px;
	--hf-content-width: 560px;
	--hf-frame-color: #ebebeb;
	--hf-home-title-size: 3rem;
	--hf-page-title-size: 2.5rem;
	--hf-page-title-line-height: 1.02;
	--hf-page-title-letter-spacing: -0.045em;
	--hf-page-title-end-space: 48px;
	--hf-section-title-size: 2rem;
	--hf-section-end-space: 75px;
	--hf-section-wave-height: clamp(46px, 6vw, 72px);
	--hf-wave-adjacent-space: max(0px, calc(var(--hf-section-end-space) - var(--hf-section-wave-height)));
	--hf-wave-section-end-space: calc(var(--hf-section-end-space) + var(--hf-section-wave-height));
	--hf-footer-wave-height: clamp(22px, 3vw, 36px);
	--hf-brand-red: #e3000b;
	--hf-header-ink: #131313;
	--hf-header-wave-height: clamp(8px, 1.9vw, 23px);
	--hf-hero-wave-height: clamp(48px, 6vw, 72px);
	--hf-wide-hero-max-height: 400px;
	--hf-hero-wave-position: center top;
	--hf-hero-wave-size: 100% 200%;
}

body,
button,
input,
select,
textarea {
	font-family: "Manrope", sans-serif;
}

body {
	background-color: var(--hf-frame-color);
	background-image: linear-gradient(#fff, #fff);
	background-position: top center;
	background-repeat: repeat-y;
	background-size: var(--hf-site-width) 100%;
}

.site-header {
	position: relative;
	z-index: 2;
	background: transparent;
}

.site-header .inside-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	max-width: var(--hf-site-width);
	padding: 12px clamp(1.5rem, 5vw, 4rem) 16px;
	background-color: var(--hf-brand-red);
	background-image: url("assets/images/about-wall-texture.webp");
	background-position: center;
	background-size: cover;
	box-sizing: border-box;
}

body.hf-header-edge-wave .site-header .inside-header::after {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	height: var(--hf-header-wave-height);
	background-color: var(--hf-brand-red);
	background-image: url("assets/images/about-wall-texture.webp");
	background-position: center bottom;
	background-size: cover;
	-webkit-mask: url("assets/images/header-wave-red.png") center bottom / 100% 100% no-repeat;
	mask: url("assets/images/header-wave-red.png") center bottom / 100% 100% no-repeat;
	content: "";
	pointer-events: none;
}

.hf-site-logo {
	position: relative;
	z-index: 1;
	display: block;
	flex: 0 0 auto;
	width: 138px;
	line-height: 0;
}

.hf-site-logo img {
	display: block;
	width: 100%;
	height: auto;
}

.site-header .main-navigation,
.site-header .main-navigation ul ul,
.site-header .main-navigation .main-nav ul li a,
.site-header .main-navigation .menu-toggle {
	background: transparent;
}

.site-header .main-navigation {
	position: relative;
	z-index: 1;
}

.site-header .main-navigation .main-nav ul li a {
	padding-right: 0.7rem;
	padding-left: 0.7rem;
	color: #fff;
	font-size: 1.008rem;
	font-weight: 600;
	line-height: 2.8;
}

.site-header .main-navigation .main-nav ul li.current-menu-item > a,
.site-header .main-navigation .main-nav ul li.current-menu-ancestor > a,
.site-header .main-navigation .main-nav ul li a:hover,
.site-header .main-navigation .main-nav ul li a:focus-visible {
	background: transparent;
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.28em;
}

.site-header .main-navigation .main-nav ul li.current-menu-item > a,
.site-header .main-navigation .main-nav ul li.current-menu-ancestor > a {
	font-weight: 800;
}

.site-header .main-navigation .main-nav ul li a:focus-visible,
.site-header .menu-toggle:focus-visible,
.hf-site-logo:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.site-header .mobile-menu-control-wrapper,
.site-header .mobile-menu-control-wrapper .menu-toggle,
.site-header .main-navigation.toggled,
.site-header .main-navigation.toggled .main-nav {
	background: transparent;
}

.site-header .menu-toggle,
.site-header .menu-toggle:hover,
.site-header .menu-toggle:focus {
	background: transparent;
	color: #fff;
}

.hf-program-hero {
	position: relative;
	z-index: 1;
	width: min(100%, var(--hf-site-width));
	max-width: var(--hf-site-width);
	margin-inline: auto;
	height: min(75vw, var(--hf-wide-hero-max-height));
	background: #d9d9d9;
	line-height: 0;
}

.hf-program-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
}

.hf-program-hero::after {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: -1px;
	left: 0;
	height: var(--hf-hero-wave-height);
	background: url("assets/images/program-hero-wave-white.png") var(--hf-hero-wave-position) / var(--hf-hero-wave-size) no-repeat;
	content: "";
	pointer-events: none;
}

.site-content {
	justify-content: center;
	width: min(100%, var(--hf-site-width));
	max-width: var(--hf-site-width);
	margin-inline: auto;
	box-sizing: border-box;
}

.no-sidebar .content-area {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin-inline: auto;
}

.hf-content-page .site-main,
.hf-event-calendar-view .site-main {
	margin-bottom: 0;
}

.hf-content-page .inside-article {
	padding-bottom: 0;
}

.hf-content-page .entry-content h1,
.hf-event-calendar-view .hf-headerbar .page-title {
	color: var(--hf-brand-red);
	font-size: var(--hf-page-title-size);
	font-weight: 800;
	letter-spacing: var(--hf-page-title-letter-spacing);
	line-height: var(--hf-page-title-line-height);
	text-align: center;
}

.hf-content-page .entry-content h1 {
	margin: 0 0 var(--hf-page-title-end-space);
}

/* GeneratePress adds 40px block padding to every Gutenberg group container.
 * Custom HoffART sections own their vertical rhythm, so only their horizontal
 * group padding is retained. */
.hf-content-page .entry-content .wp-block-group__inner-container {
	padding-top: 0;
	padding-bottom: 0;
}

.hf-content-page .entry-content .wp-block-group__inner-container > :last-child {
	margin-bottom: 0;
}

.page:not(.hf-event-calendar-view) .inside-article > .entry-header,
.page:not(.hf-event-calendar-view) .inside-article > .entry-content {
	width: min(100%, var(--hf-content-width));
	margin-inline: auto;
}

.page:not(.hf-event-calendar-view).no-sidebar .entry-content > .alignfull {
	width: min(100vw, var(--hf-site-width));
	max-width: min(100vw, var(--hf-site-width));
	margin-right: 0;
	margin-left: 50%;
	transform: translateX(-50%);
}

@media (max-width: 768px) {
	:root {
		--hf-page-title-size: clamp(1.7rem, 8.5vw, 2.4rem);
		--hf-page-title-end-space: 36px;
		--hf-section-end-space: 48px;
		--hf-hero-wave-position: center bottom;
		--hf-hero-wave-size: 100% 100%;
	}

	.page:not(.hf-event-calendar-view) .entry-content h1,
	.page:not(.hf-event-calendar-view) .entry-content h2,
	.page:not(.hf-event-calendar-view) .entry-content h3 {
		hyphens: none;
		overflow-wrap: normal;
		word-break: normal;
	}

	.page:not(.hf-event-calendar-view) .entry-content h2 {
		font-size: 1.75rem;
		line-height: 1.12;
	}

	.page:not(.hf-event-calendar-view) .entry-content h3 {
		font-size: 1.4rem;
		line-height: 1.18;
	}

	.hf-program-hero__image {
		object-position: 50% 42%;
	}

	.hf-program-hero::after {
		height: clamp(38px, 12vw, 52px);
	}

	.site-header .inside-header {
		flex-flow: row wrap;
		min-height: 70px;
		padding: 10px 1.25rem 14px;
	}

	.hf-site-logo {
		order: 1;
		width: 98px;
	}

	.site-header .mobile-menu-control-wrapper {
		order: 2;
		margin-left: auto;
	}

	.site-header .mobile-menu-control-wrapper .menu-toggle {
		font-size: 1.40625rem;
	}

	.site-header #site-navigation {
		order: 3;
		flex: 0 0 100%;
		width: 100%;
	}

	.site-header #site-navigation .inside-navigation,
	.site-header #site-navigation .main-nav,
	.site-header #site-navigation .main-nav ul {
		width: 100%;
	}

	.site-header #site-navigation .main-nav {
		padding-top: 0.5rem;
	}

	.site-header .main-navigation .main-nav ul li a {
		padding-right: 0;
		padding-left: 0;
		font-size: 1.26rem;
		line-height: 2.9;
	}
}

@media (min-width: 534px) {
	.hf-program-hero__image {
		object-position: 50% 50%;
	}
}
