/*
Theme Name:   Hüpfburgverleih
Description:  Schlankes, eigenständiges Theme für Hüpfburgverleih Maier.
Author:       Hüpfburgverleih Maier
Version:      1.0.4
Requires PHP: 7.4
Text Domain:  huepfburgverleih
*/

:root {
	--hv-accent: #277fbf;
	--hv-accent-dark: #1f6598;
	--hv-ink: #222222;
	--hv-muted: #6b6f73;
	--hv-border: #e4e4e2;
	--hv-surface: #ffffff;
	--hv-surface-soft: #f5f6f7;
	--hv-max-width: 1200px;
	--hv-font: "Barlow", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--hv-font);
	color: var(--hv-ink);
	background: var(--hv-surface);
	line-height: 1.6;
	overflow-x: hidden;
}

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

a {
	color: var(--hv-accent);
}

h1, h2, h3, h4 {
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
	margin: 0 0 0.5em;
}

.hv-container {
	max-width: var(--hv-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

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

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

.hv-site-header {
	border-bottom: 1px solid var(--hv-border);
}

/* ---------- Topbar: Logo + Kontakt + Social ---------- */

.hv-topbar {
	background: var(--hv-surface);
	border-bottom: 1px solid var(--hv-border);
}

.hv-topbar__inner {
	max-width: var(--hv-max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	padding: 14px 20px;
}

.hv-site-header__logo img {
	max-height: 95px;
	width: auto;
}

.hv-site-header__logo-text {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--hv-ink);
	text-decoration: none;
}

.hv-topbar__contact {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
	margin-left: auto;
	padding-right: 20px;
}

.hv-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--hv-muted);
	text-decoration: none;
	font-size: 1.05rem;
	font-weight: 700;
	position: relative;
	padding-left: 20px;
}

.hv-topbar__item:first-child {
	padding-left: 0;
}

.hv-topbar__item:not(:first-child)::before {
	content: "";
	position: absolute;
	left: -10px;
	top: 2px;
	bottom: 2px;
	width: 1px;
	background: var(--hv-border);
}

.hv-topbar__item svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	color: var(--hv-accent);
}

a.hv-topbar__item:hover {
	color: var(--hv-accent);
}

.hv-topbar__social {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hv-topbar__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--hv-accent);
	color: #fff;
}

.hv-topbar__social-link svg {
	width: 17px;
	height: 17px;
}

.hv-topbar__social-link:hover {
	background: var(--hv-accent-dark);
}

/* ---------- Navbar: durchgehender, farbiger Menü-Balken ---------- */

.hv-navbar {
	background: var(--hv-accent);
}

.hv-navbar__inner {
	max-width: var(--hv-max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
}

.hv-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.hv-nav > ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 24px;
	flex-wrap: wrap;
}

.hv-nav li {
	position: relative;
}

.hv-nav a {
	display: inline-block;
	color: #fff;
	text-decoration: none;
	font-size: 1.15rem;
	font-weight: 700;
	padding: 20px 0;
}

.hv-nav a:hover {
	color: rgba(255, 255, 255, 0.75);
}

.hv-nav .sub-menu a {
	color: var(--hv-ink);
}

.hv-nav .sub-menu a:hover {
	color: var(--hv-accent);
}

.hv-nav li.menu-item-has-children > a::after {
	content: "▾";
	font-size: 0.7em;
	margin-left: 5px;
	vertical-align: middle;
}

.hv-nav .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 10px 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: var(--hv-surface);
	border: 1px solid var(--hv-border);
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	z-index: 20;
}

.hv-nav li.menu-item-has-children:hover > .sub-menu,
.hv-nav li.menu-item-has-children:focus-within > .sub-menu {
	display: block;
}

.hv-nav .sub-menu.hv-sub-menu--right {
	left: auto;
	right: 0;
}

.hv-nav .sub-menu li {
	width: 100%;
}

.hv-nav .sub-menu a {
	display: block;
	padding: 8px 18px;
}

.hv-nav-toggle {
	display: none;
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 8px;
	padding: 8px 10px;
	cursor: pointer;
	margin: 12px 0;
}

.hv-nav-toggle span,
.hv-nav-toggle span::before,
.hv-nav-toggle span::after {
	display: block;
	width: 20px;
	height: 2px;
	background: #fff;
	position: relative;
	transition: transform 0.15s ease;
}

.hv-nav-toggle span::before,
.hv-nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}

.hv-nav-toggle span::before {
	top: -6px;
}

.hv-nav-toggle span::after {
	top: 6px;
}

@media (max-width: 860px) {
	.hv-topbar__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.hv-topbar__contact {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		margin-left: 0;
		padding-right: 0;
	}

	.hv-topbar__item {
		padding-left: 0;
	}

	.hv-topbar__item::before {
		display: none;
	}

	.hv-nav-toggle {
		display: block;
	}

	.hv-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--hv-surface);
		border-bottom: 1px solid var(--hv-border);
		flex-direction: column;
		align-items: flex-start;
		padding: 16px 20px;
		display: none;
		z-index: 30;
	}

	.hv-nav > ul > li > a {
		color: var(--hv-ink);
	}

	.hv-nav > ul > li > a:hover {
		color: var(--hv-accent);
	}

	.hv-navbar {
		position: relative;
	}

	.hv-navbar__inner {
		justify-content: flex-end;
	}

	.hv-nav.is-open {
		display: flex;
	}

	.hv-nav > ul {
		flex-direction: column;
		gap: 14px;
		width: 100%;
	}

	.hv-nav .sub-menu {
		display: block;
		position: static;
		border: none;
		box-shadow: none;
		padding: 6px 0 0 16px;
	}

	.hv-nav li.menu-item-has-children:hover > .sub-menu,
	.hv-nav li.menu-item-has-children:focus-within > .sub-menu {
		display: block;
	}
}

/* ---------- Content ---------- */

.hv-page {
	max-width: var(--hv-max-width);
	margin: 0 auto;
	padding: 48px 20px;
}

.hv-page__title {
	font-size: 2.1rem;
	margin-bottom: 24px;
}

.hv-entry-content {
	max-width: 75ch;
	margin-left: auto;
	margin-right: auto;
}

.hv-entry-content > *:first-child {
	margin-top: 0;
}

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

.hv-site-footer {
	background: #16181b;
	color: #b8bcc0;
}

.hv-site-footer a {
	color: #b8bcc0;
}

.hv-site-footer__top-inner {
	max-width: var(--hv-max-width);
	margin: 0 auto;
	padding: 28px 20px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
}

.hv-site-footer__logo {
	flex: 1 1 0;
}

.hv-site-footer__logo img {
	max-height: 100px;
	width: auto;
}

.hv-site-footer__logo a {
	color: #fff;
	font-size: 1.2rem;
	font-weight: 700;
	text-decoration: none;
}

.hv-site-footer__contact {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 32px;
	margin: 0 auto;
}

.hv-site-footer__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-decoration: none;
}

.hv-site-footer__cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--hv-accent);
	color: #fff;
	flex: 0 0 auto;
}

.hv-site-footer__cta-icon svg {
	width: 22px;
	height: 22px;
}

.hv-site-footer__cta-text {
	color: #fff;
	font-weight: 700;
	font-size: 1.25rem;
}

.hv-site-footer__social {
	flex: 1 1 0;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.hv-site-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: #24272b;
	color: #fff;
}

.hv-site-footer__social-link:hover {
	background: var(--hv-accent);
}

.hv-site-footer__social-link svg {
	width: 17px;
	height: 17px;
}

.hv-site-footer__divider {
	max-width: var(--hv-max-width);
	margin: 0 auto;
	border-top: 1px solid #2c2f33;
}

.hv-site-footer__columns {
	max-width: var(--hv-max-width);
	margin: 0 auto;
	padding: 40px 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
}

.hv-site-footer__col h3 {
	color: #fff;
	font-size: 1.15rem;
	margin: 0 0 12px;
}

.hv-site-footer__col-underline {
	display: block;
	width: 40px;
	height: 3px;
	background: var(--hv-accent);
	margin-bottom: 18px;
}

.hv-site-footer__col nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 24px;
}

.hv-site-footer__col nav a {
	text-decoration: none;
}

.hv-site-footer__col nav a:hover {
	color: #fff;
}

.hv-site-footer__bottom {
	border-top: 1px solid #2c2f33;
	padding: 18px 20px;
	text-align: center;
	font-size: 0.85rem;
}

@media (max-width: 700px) {
	.hv-site-footer__top-inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.hv-site-footer__logo {
		flex: 0 0 auto;
	}

	.hv-site-footer__contact {
		flex-direction: column;
		gap: 14px;
		margin: 0;
	}

	.hv-site-footer__social {
		flex: 0 0 auto;
		justify-content: center;
	}
}

/* ---------- 404 ---------- */

.hv-404 {
	max-width: var(--hv-max-width);
	margin: 0 auto;
	padding: 80px 20px;
	text-align: center;
}

.hv-404 a {
	color: var(--hv-accent);
	font-weight: 600;
}
