/*
Theme Name: House of Beads – Original 2013
Theme URI: https://www.beads.ch/
Author: beads.ch Relaunch
Description: Originalgetreuer WordPress-Nachbau des bisherigen House-of-Beads-Designs. Block-Theme mit editierbaren Inhalten, Navigation, Logo, Bildern und Farben.
Version: 2.1.1
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: house-of-beads
*/

:root {
	--hob-layout: 1000px;
	--hob-page-bg: var(--wp--preset--color--hob-page-bg, #5AAC9C);
	--hob-panel: var(--wp--preset--color--hob-panel, #21836F);
	--hob-border: var(--wp--preset--color--hob-border, #056350);
	--hob-white: var(--wp--preset--color--white, #FFFFFF);
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }

body {
	background: var(--hob-page-bg);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.45;
	color: var(--hob-white);
}

.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * { margin-block-start: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }

.hob-layout-width {
	width: var(--hob-layout);
	max-width: calc(100vw - 20px);
	margin-left: auto !important;
	margin-right: auto !important;
}

/* HEADER / LOGO ---------------------------------------------------------- */
.hob-header {
	margin: 0;
	padding: 0;
	background: transparent;
}

.hob-logo-wrap {
	width: 100%;
	height: 150px;
	margin: 0;
	padding: 0;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Default logo reconstructed from the supplied original screenshot. */
.hob-logo-wrap::before {
	content: "";
	width: 416px;
	height: 139px;
	max-width: calc(100vw - 30px);
	background: url('./assets/images/house-of-beads-logo.png') center center / contain no-repeat;
	display: block;
}

/* A logo chosen by the client in the Site Editor replaces the bundled logo. */
.hob-logo-wrap:has(.custom-logo-link)::before { display: none; }
.hob-logo-wrap .wp-block-site-logo {
	margin: 0 !important;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.hob-logo-wrap .wp-block-site-logo .custom-logo-link { pointer-events: auto; }
.hob-logo-wrap .wp-block-site-logo img {
	width: auto;
	height: auto;
	max-width: 416px;
	max-height: 139px;
}

/* NAVIGATION ------------------------------------------------------------- */
.hob-nav-wrap {
	margin: 25px 0 0;
	padding: 0;
	min-height: 44px;
	height: auto;
}

.hob-nav-wrap .wp-block-navigation {
	margin: 0 !important;
	padding: 0;
	min-height: 44px;
	justify-content: center;
}

.hob-nav-wrap .wp-block-navigation__container {
	gap: 10px !important;
	align-items: stretch;
	justify-content: center;
	flex-wrap: wrap !important;
}

.hob-nav-wrap .wp-block-navigation-item {
	min-height: 44px;
	height: auto;
	background: var(--hob-panel);
	border: 1px solid var(--hob-border);
	margin: 0;
}

.hob-nav-wrap .wp-block-navigation-item:nth-child(1) { min-width: 100px; }
.hob-nav-wrap .wp-block-navigation-item:nth-child(2) { min-width: 145px; }
.hob-nav-wrap .wp-block-navigation-item:nth-child(3) { min-width: 122px; }
.hob-nav-wrap .wp-block-navigation-item:nth-child(4) { min-width: 135px; }
.hob-nav-wrap .wp-block-navigation-item:nth-child(5) { min-width: 126px; }

.hob-nav-wrap .wp-block-navigation-item__content {
	width: 100%;
	min-height: 42px;
	height: auto;
	padding: 0 8px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
}

/* In the supplied homepage screenshot HOME is the active item. */
.home .hob-nav-wrap .wp-block-navigation-item:first-child > .wp-block-navigation-item__content,
.hob-nav-wrap .current-menu-item > .wp-block-navigation-item__content,
.hob-nav-wrap .current-menu-ancestor > .wp-block-navigation-item__content {
	color: #000;
}

.hob-nav-wrap .wp-block-navigation-item__content:hover,
.hob-nav-wrap .wp-block-navigation-item__content:focus {
	color: #000;
}

/* HOMEPAGE --------------------------------------------------------------- */
.hob-home-main { margin: 0; padding: 0 0 10px; }

.hob-old-hero {
	width: var(--hob-layout) !important;
	max-width: calc(100vw - 20px) !important;
	height: 418px !important;
	min-height: 418px !important;
	margin: 14px auto 0 !important;
	padding: 0 !important;
	border: 1px solid var(--hob-border);
	border-radius: 0 !important;
	position: relative;
	overflow: hidden;
	background: transparent !important;
}

.hob-old-hero::before {
	content: "";
	position: absolute;
	inset: 1px;
	background: url('./assets/images/beads.png') center center / 100% 100% no-repeat;
	z-index: 0;
}
.hob-old-hero:has(.wp-block-cover__image-background)::before { display: none; }
.hob-old-hero .wp-block-cover__background { display: none !important; }
.hob-old-hero .wp-block-cover__image-background {
	inset: 1px !important;
	width: calc(100% - 2px) !important;
	height: calc(100% - 2px) !important;
	object-fit: cover;
}
.hob-old-hero .wp-block-cover__inner-container { position: relative; z-index: 2; }

.hob-panel {
	border: 1px solid var(--hob-border);
	border-radius: 0;
	color: #fff;
}
.hob-panel a { color: #fff; text-decoration: underline; }

.hob-home-intro {
	width: var(--hob-layout);
	max-width: calc(100vw - 20px);
	min-height: 187px;
	margin: 28px auto 0 !important;
	padding: 22px 20px 18px !important;
}

.hob-home-intro h2,
.hob-home-card h2 {
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
}

.hob-home-intro h2 { margin-bottom: 17px; }
.hob-home-intro p,
.hob-home-card p {
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
}
.hob-home-intro p + p { margin-top: 12px; }

.hob-home-columns {
	width: var(--hob-layout);
	max-width: calc(100vw - 20px);
	margin: 20px auto 0 !important;
	gap: 20px !important;
	align-items: stretch !important;
}
.hob-home-columns > .wp-block-column { margin: 0 !important; }
.hob-home-card {
	min-height: 224px;
	height: auto;
	padding: 24px 20px 18px !important;
	margin: 0 !important;
}
.hob-home-card h2 { margin-bottom: 17px; }
.hob-home-card p + p { margin-top: 12px; }

/* FOOTER ----------------------------------------------------------------- */
.hob-footer-wrap { margin: 0; padding: 0 0 10px; }
.hob-footer-line {
	width: 1020px;
	max-width: calc(100vw - 4px);
	height: 1px;
	margin: 20px auto 0 !important;
	border: 0;
	background: var(--hob-border);
}
.hob-footer-box {
	width: var(--hob-layout);
	max-width: calc(100vw - 20px);
	min-height: 152px;
	height: auto;
	margin: 20px auto 0 !important;
	padding: 0 16px !important;
	border: 1px solid var(--hob-border);
	display: flex;
	align-items: center;
}
.hob-footer-box .wp-block-columns {
	width: 100%;
	margin: 0 !important;
	gap: 0 !important;
	align-items: center !important;
}
.hob-footer-box .wp-block-column { margin: 0 !important; }
.hob-footer-box p {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
	color: #fff;
}
.hob-footer-box a { color: #fff; text-decoration: underline; }
.hob-footer-center { text-align: center; }
.hob-footer-right { text-align: center; }
.hob-footer-right .wp-block-social-links {
	margin: 0 !important;
	padding: 0 !important;
	justify-content: center;
}
.hob-footer-right .wp-social-link {
	min-width: 44px;
	min-height: 44px;
	background: transparent !important;
	color: #fff !important;
}
.hob-footer-right .wp-social-link svg { width: 40px; height: 40px; }

/* GENERIC PAGES / POSTS -------------------------------------------------- */
.hob-page-main {
	width: var(--hob-layout);
	max-width: calc(100vw - 20px);
	margin: 28px auto 0 !important;
	padding: 24px 20px 28px !important;
	border: 1px solid var(--hob-border);
	color: #fff;
}
.hob-page-main h1,
.hob-page-main h2,
.hob-page-main h3,
.hob-page-main .wp-block-post-title {
	color: #fff;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: 400;
}
.hob-page-main .wp-block-post-title { margin-top: 0; }
.hob-page-main a { color: #fff; text-decoration: underline; }
.hob-page-main img { max-width: 100%; height: auto; }

/* ACCESSIBILITY ----------------------------------------------------------- */
/* Keep assistive text available without changing the historic visual design. */
.hob-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* The bundled CSS logo is decorative to assistive technology. This invisible
   full-size Site Title link gives the logo a keyboard- and screen-reader-
   accessible home link without altering its appearance. */
.hob-site-title-accessible {
	position: absolute !important;
	inset: 0 !important;
	z-index: 3;
	width: 416px;
	height: 139px;
	max-width: calc(100vw - 30px);
	margin: auto !important;
	padding: 0 !important;
}
.hob-site-title-accessible a {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-indent: -9999px;
	text-decoration: none !important;
}
.hob-logo-wrap:has(.custom-logo-link) .hob-site-title-accessible { display: none !important; }

/* Skip link: first keyboard focus, completely off-screen until focused.
   It is centered when visible so it cannot be missed, including with the
   WordPress admin bar enabled. */
.hob-skip-link {
	position: fixed !important;
	z-index: 1000000 !important;
	top: 0;
	left: 50%;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 10px 14px !important;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	white-space: nowrap;
	transform: translate(-50%, -140%);
	background: #fff !important;
	color: #000 !important;
	border: 2px solid #000 !important;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: underline;
}
.hob-skip-link:focus,
.hob-skip-link:focus-visible {
	top: 8px;
	transform: translate(-50%, 0);
}
.admin-bar .hob-skip-link:focus,
.admin-bar .hob-skip-link:focus-visible { top: 40px; }

@media (max-width: 782px) {
	.admin-bar .hob-skip-link:focus,
	.admin-bar .hob-skip-link:focus-visible { top: 54px; }
}

/* A strong black focus ring passes contrast against both original greens. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid #000 !important;
	outline-offset: 3px !important;
}

/* Prevent long addresses/URLs from causing horizontal scrolling at zoom. */
.hob-panel,
.hob-page-main,
.hob-footer-box {
	overflow-wrap: anywhere;
}

/* Sensible accessible defaults for contact-form plugins without redesigning
   the theme. */
.hob-page-main :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
	max-width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 2px solid #000;
	border-radius: 0;
	background: #fff;
	color: #000;
	font: inherit;
}
.hob-page-main textarea { min-height: 120px; }
.hob-page-main :where(button, input[type="submit"], input[type="button"], .wp-element-button) {
	min-width: 44px;
	min-height: 44px;
	padding: 8px 14px;
	border: 2px solid #000;
	border-radius: 0;
	background: var(--hob-panel);
	color: #fff;
	font: inherit;
	cursor: pointer;
}

/* Core Navigation supplies the accessible dialog behaviour. The hamburger
   and close controls must exist only in the mobile layout. Keeping these
   desktop rules explicit prevents WordPress/Core style changes from exposing
   both controls next to the classic desktop navigation. */
.hob-nav-wrap .wp-block-navigation__responsive-container-open,
.hob-nav-wrap .wp-block-navigation__responsive-container-close {
	display: none !important;
}

@media (forced-colors: active) {
	.hob-nav-wrap .wp-block-navigation-item,
	.hob-panel,
	.hob-footer-box,
	.hob-page-main {
		border: 1px solid CanvasText;
	}
	:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
		outline: 3px solid Highlight !important;
	}
}

/* Editor helpers */
.editor-styles-wrapper .hob-logo-wrap { min-height: 150px; }
.editor-styles-wrapper .hob-old-hero::before { pointer-events: none; }

@media (max-width: 780px) {
	.hob-logo-wrap { height: 120px; }
	.hob-logo-wrap::before { width: 340px; height: 114px; }
	.hob-nav-wrap { min-height: 44px; height: auto; margin-top: 8px; padding: 0 10px; }
	.hob-nav-wrap .wp-block-navigation { min-height: 44px; }
	.hob-nav-wrap .wp-block-navigation__responsive-container-open {
		display: flex !important;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		margin: 0 auto;
		color: #000 !important;
	}
	.hob-nav-wrap .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}
	.hob-nav-wrap .wp-block-navigation__responsive-container.is-menu-open {
		display: flex !important;
		background: var(--hob-panel) !important;
		color: #fff !important;
		padding: 24px;
	}
	.hob-nav-wrap .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex !important;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		color: #fff !important;
	}
	.hob-nav-wrap .wp-block-navigation-item { width: auto !important; min-width: 0 !important; height: auto; border: 0; background: transparent; }
	.hob-nav-wrap .wp-block-navigation-item__content { height: auto; min-height: 38px; justify-content: flex-start; }
	.hob-old-hero {
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 1000 / 418;
		margin-top: 14px !important;
	}
	.hob-home-intro { min-height: 0; }
	.hob-home-columns { flex-wrap: wrap !important; }
	.hob-home-columns > .wp-block-column { flex-basis: 100% !important; }
	.hob-home-card { min-height: 180px; }
	.hob-footer-box { min-height: 152px; padding: 18px 16px !important; }
	.hob-footer-box .wp-block-columns { flex-wrap: wrap !important; row-gap: 24px !important; }
	.hob-footer-box .wp-block-column { flex-basis: 100% !important; text-align: left; }
	.hob-footer-right .wp-block-social-links { justify-content: flex-start; }
}

.hob-map-section {
	margin-top: 32px !important;
	padding-top: 24px;
	border-top: 1px solid var(--hob-border, #056350);
}

.hob-map-heading {
	margin: 0 0 8px !important;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
}

.hob-map-address {
	margin: 0 0 14px !important;
}

.hob-map-wrap {
	width: 100%;
	max-width: 998px;
	margin:28px auto 0 !important;
	border: 1px solid var(--hob-border, #056350);
	background: var(--hob-panel, #21836F);
	overflow: hidden;
}

.hob-map-frame {
	display: block;
	width: 100%;
	height: 420px;
	margin: 0;
	border: 0;
	background: var(--hob-panel, #21836F);
}

.hob-map-external {
	margin: 12px 0 0 !important;
}

.hob-map-external a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.hob-map-external a:hover {
	text-decoration-thickness: 2px;
}

.hob-map-external a:focus-visible {
	outline: 3px solid #000 !important;
	outline-offset: 3px !important;
}

@media (max-width: 780px) {
	.hob-map-section {
		margin-top: 24px !important;
		padding-top: 20px;
	}

	.hob-map-frame {
		height: 340px;
	}
}

@media (forced-colors: active) {
	.hob-map-wrap {
		border: 1px solid CanvasText;
	}
}
