/* ============================================================
   Harmony CMS chrome
   The tenant's photo is the hero; everything here is the frame.
   Surfaces are frosted glass, type is Sora + Instrument Sans,
   the floating menu dock is the signature element.
   ============================================================ */

:root {
	--ink: #1c1d1f;
	--accent: #3a4454;
	--accent-deep: #2c3441;
	--ink-soft: rgba(28, 29, 31, 0.72);
	--ink-faint: rgba(28, 29, 31, 0.12);
	--glass: rgba(252, 252, 250, 0.72);
	--glass-solid: rgba(252, 252, 250, 0.95);
	--glass-edge: rgba(255, 255, 255, 0.65);
	--glass-sheen: linear-gradient(165deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.02) 45%);
	--admin-color: rgba(0, 0, 0, 0.80);
	--cover-color: rgba(252, 252, 250, 0.82);
	--success-color: greenyellow;
	--admin-panel-top: 44px;
	--radius-card: 24px;
	--shadow-card: 0 18px 50px -12px rgba(0, 0, 0, 0.35);
	--font-display: "Sora", "Instrument Sans", "Segoe UI", sans-serif;
	--font-body: "Instrument Sans", "Segoe UI", Calibri, Arial, sans-serif;
}

/* Override attributes */
body {
	margin: 0;
	background-position: center top;
	background-repeat: no-repeat;
	background-attachment: fixed;
	font-family: var(--font-body);
	overflow: auto;
	color: white;
	background-color: #101113;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

input[type=text], input[type=password] {
	font-size: 17px;
	font-family: var(--font-body);
	padding: 10px 14px;
	margin: 0;
	border: 1px solid var(--ink-faint) !important;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--ink);
}

	input[type=text]:focus, input[type=password]:focus {
		outline: 2px solid var(--ink-soft);
		outline-offset: 1px;
	}

input[type=checkbox] {
	width: 24px;
	height: 24px;
	accent-color: var(--ink);
}

h1 {
	margin: 0;
	padding: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

label {
	display: block;
	margin-top: 10px;
}

a {
	text-decoration: none;
}

button[type=submit] {
	border: none;
	background: transparent;
}

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
	border-radius: 4px;
}

/* global styles */
.clickable {
	cursor: pointer;
}

.button {
	cursor: pointer;
	padding: 10px;
	font-size: 22px;
	color: var(--ink);
}

.white {
	color: white !important;
}

.scroll_to_top {
	margin-top: 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.70);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--ink-soft);
	text-decoration: none !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

	/* chevron drawn in CSS — independent of any icon font */
	.scroll_to_top::before {
		content: "";
		width: 11px;
		height: 11px;
		border-top: 2.5px solid currentColor;
		border-left: 2.5px solid currentColor;
		border-radius: 2px;
		transform: rotate(45deg);
		margin-top: 5px;
	}

	.scroll_to_top:hover {
		background-color: rgba(12, 60, 80, 0.60);
		border-color: rgba(255, 255, 255, 0.35);
		color: white;
	}

	.scroll_to_top:last-child {
		margin-bottom: 20px;
	}

/* PageBackground */
.page_background {
	position: fixed;
	top: 0;
	left: 0;
	min-width: 100%;
	min-height: 100%;
	z-index: -1;
}

@media (min-aspect-ratio: 3/2) {
	.page_background {
		width: 100%;
	}
}

@media (max-aspect-ratio: 3/2) {
	.page_background {
		height: 100%;
	}
}

@media (max-aspect-ratio: 41/59) {
	.page_background {
		left: -75%;
	}
}

@media (max-aspect-ratio: 2/3) {
	.page_background {
		left: -120%;
	}
}

#hamburger_menu {
	display: none;
	padding: 14px;
	font-size: 24px;
	cursor: pointer;
}

	#hamburger_menu i:first-child {
		color: var(--ink);
	}

#company_logo_panel img {
	position: fixed;
	top: 48px;
	left: 48px;
	max-height: 260px;
	max-width: 480px;
	z-index: 2;
	vertical-align: top;
	filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.25));
}

/* Modal */
#myModal.modal {
	display: none;
	position: fixed;
	z-index: 5;
	padding-top: 100px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(10, 10, 12, 0.88);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

#myModal .modal-content {
	margin: auto;
	display: block;
	height: 70%;
	border-radius: 14px;
	box-shadow: var(--shadow-card);
}

#myModal #caption {
	margin: auto;
	display: block;
	width: 80%;
	max-width: 700px;
	text-align: center;
	color: #ccc;
	padding: 10px 0;
	height: 150px;
}

#myModal .modal-content, #mymodal #caption {
	animation-name: zoom;
	animation-duration: 0.35s;
}

@keyframes zoom {
	from {
		transform: scale(0.92);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	#myModal .modal-content, #mymodal #caption {
		animation: none;
	}
}

#myModal .close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
}

	#myModal .close:hover,
	#myModal .close:focus {
		color: #bbb;
		text-decoration: none;
		cursor: pointer;
	}

@media only screen and (max-width: 700px) {
	#myModal .modal-content {
		width: 100%;
		height: auto;
	}
}

/* Modal loading  */
#loading {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 240px;
	height: 240px;
	margin-top: -120px;
	margin-left: -120px;
	z-index: 3;
	display: none;
}

/* PageBlock unblock */
.unblock {
	padding: 10px 0 20px 0;
}

	.unblock button {
		padding: 10px 22px;
		border-radius: 999px;
		border: none;
		background: var(--accent);
		color: white;
		font-family: var(--font-body);
		font-size: 15px;
		font-weight: 500;
		margin-top: 12px;
		cursor: pointer;
	}

		.unblock button:hover {
			background: var(--accent-deep);
		}

/* AdminTools */
#admin_tools {
	position: fixed;
	width: 100%;
	left: 0;
	top: 0;
	background-color: var(--admin-color);
	z-index: 3;
}

	#admin_tools img, #admin_tools input {
		margin-top: 9px;
	}

/* Mandantor */
#mandantor_panel {
	max-height: 70%;
	overflow-y: auto;
	position: fixed;
	top: var(--admin-panel-top);
	background-color: var(--admin-color);
	padding: 20px;
	width: 415px;
	z-index: 4;
}

	#mandantor_panel .background_preview_with_commands {
		display: inline-block;
	}

	#mandantor_panel .background_preview {
		max-width: 100px;
		max-height: 100px;
	}

	#mandantor_panel .delete_background_button {
		position: relative;
		left: -30px;
	}

	#mandantor_panel .logo_preview {
		max-height: 100px;
		max-width: 100px;
	}

	#mandantor_panel input[type=image] {
		margin-top: 10px;
	}

/* PageEditPanel */
#page_panel {
	position: fixed;
	top: var(--admin-panel-top);
	background-color: var(--admin-color);
	padding: 20px;
	z-index: 4;
}

	#page_panel input[type=image] {
		margin-top: 10px;
	}

/* MainMenu — the floating glass dock */
#main_menu {
	position: fixed;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%);
	right: auto;
	width: max-content;
	max-width: calc(100vw - 32px);
	padding: 6px;
	background-color: rgba(252, 252, 250, 0.42);
	background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.02) 45%);
	-webkit-backdrop-filter: blur(15px) saturate(1.5);
	backdrop-filter: blur(15px) saturate(1.5);
	border: 1px solid var(--glass-edge);
	border-radius: 999px;
	box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.4);
	z-index: 3;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	#main_menu {
		background-color: var(--glass-solid);
	}
}

	#main_menu.long {
		font-size: 14px;
	}

	#main_menu .menu_item {
		border: 1px solid transparent;
		box-sizing: border-box;
		padding: 0 18px;
		font-size: 16px;
		font-weight: 500;
		letter-spacing: 0.01em;
		height: 42px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		white-space: nowrap;
		border-radius: 999px;
		color: var(--ink);
		transition: background-color 0.15s ease, color 0.15s ease;
	}

		#main_menu .menu_item .lock {
			position: relative;
			font-size: 12px !important;
			padding: 0 0 0 4px !important;
			color: inherit;
		}

		#main_menu .menu_item a {
			display: block;
			color: inherit;
			text-decoration: none;
		}

		#main_menu .menu_item.current_page {
			background-color: rgba(12, 60, 80, 0.60);
			border-color: rgba(255, 255, 255, 0.35);
			-webkit-backdrop-filter: blur(8px);
			backdrop-filter: blur(8px);
			color: white;
		}

		#main_menu .menu_item:hover:not(.current_page) {
			background-color: var(--ink-faint);
			color: var(--ink);
		}

		#main_menu .menu_item img.hidden {
			position: relative;
			top: 8px;
		}

		#main_menu .menu_item.social {
			padding: 0 8px;
		}

			#main_menu .menu_item.social img {
				height: 28px;
				padding: 0 2px;
				display: block;
			}

	#main_menu #new_page_panel {
		position: fixed;
		bottom: 90px;
		background-color: var(--glass-solid);
		-webkit-backdrop-filter: blur(18px);
		backdrop-filter: blur(18px);
		padding: 10px;
		color: var(--ink);
		border-radius: 14px;
		border: 1px solid var(--glass-edge);
		box-shadow: var(--shadow-card);
	}

		#main_menu #new_page_panel div {
			padding: 6px 12px;
			border-radius: 8px;
			line-height: 1.8;
		}

			#main_menu #new_page_panel div:hover {
				background-color: var(--ink-faint);
			}

			#main_menu #new_page_panel a {
				color: var(--ink);
			}

/* keep the dock clear of the gallery filmstrip */
body:has(#gallery_preview) #main_menu {
	bottom: 78px;
}

/* #text_page — the content card */
#text_page {
	color: var(--ink);
	padding: 32px 34px;
	background-color: var(--glass);
	background-image: var(--glass-sheen);
	-webkit-backdrop-filter: blur(15px) saturate(1.5);
	backdrop-filter: blur(15px) saturate(1.5);
	border: 1px solid var(--glass-edge);
	position: fixed;
	right: 28px;
	top: 48px;
	max-height: calc(100vh - 144px);
	overflow-y: auto;
	width: 620px;
	box-sizing: border-box;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	scrollbar-width: thin;
	scrollbar-color: rgba(28, 29, 31, 0.25) transparent;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	#text_page {
		background-color: var(--glass-solid);
	}
}

	#text_page::-webkit-scrollbar {
		width: 6px;
	}

	#text_page::-webkit-scrollbar-thumb {
		background: rgba(28, 29, 31, 0.25);
		border-radius: 999px;
	}

	#text_page a {
		color: var(--ink);
		font-weight: 500;
		text-decoration: underline;
		text-decoration-color: rgba(28, 29, 31, 0.35);
		text-decoration-thickness: 1.5px;
		text-underline-offset: 3px;
		transition: text-decoration-color 0.15s ease;
	}

		#text_page a:hover {
			text-decoration-color: var(--ink);
		}

	#text_page > h1 {
		margin-bottom: 14px;
	}

	#text_page .content h2 {
		font-size: 24px;
		margin: 26px 0 8px 0;
	}

	#text_page .content h3 {
		font-size: 19px;
		margin: 20px 0 6px 0;
	}

	#text_page .top_shade,
	#text_page .bottom_shade {
		display: none;
	}

	#text_page .commands {
		background-color: var(--admin-color);
		transition: background-color 0.5s linear;
		border-radius: 10px;
	}

		#text_page .commands.saved {
			background-color: var(--success-color);
			transition: background-color 0.5s linear;
		}

		#text_page .commands img {
			vertical-align: middle;
		}

	#text_page .page_block_password {
		display: none;
		margin-top: 10px;
		margin-bottom: 10px;
	}

	#text_page .clipboard {
		color: var(--ink);
		transition: color 0.5s linear;
	}

		#text_page .clipboard.copied {
			color: var(--success-color);
			transition: color 0.5s linear;
		}

/* PageBlocks */
#page_block_area {
	margin-bottom: 20px;
}

.page_block {
	margin-bottom: 8px;
}

/* Text page blocks */
#text_page .page_block.text .content table td {
	border-top: 1px solid var(--ink-faint);
	min-width: 10px;
	padding: 8px 10px;
}

#text_page .page_block.text .content table tr:last-child td {
	border-bottom: 1px solid var(--ink-faint);
}

#text_page .content figure img {
	border-radius: 12px;
	cursor: pointer;
	max-width: 100%;
	max-height: 100%;
	box-shadow: 0 6px 22px -6px rgba(0, 0, 0, 0.3);
}

/* appointment text block */
.appointment table {
	margin-top: 15px;
	margin-bottom: 15px;
	border-collapse: collapse;
}

.appointment th, .appointment td {
	text-align: left;
	padding: 8px 20px 8px 0;
}

.appointment th {
	border-bottom: 1px solid var(--ink);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ink-soft);
}

.appointment td {
	font-weight: normal;
	border-bottom: 1px solid var(--ink-faint);
}

/* price text block*/
.prices table {
	margin-top: 15px;
	margin-bottom: 15px;
	border-collapse: collapse;
}

.prices th, .prices td {
	text-align: left;
	padding: 8px 10px 8px 0;
}

.prices thead tr:first-child th {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	padding-top: 18px;
	border-top: none;
}

.prices thead tr:last-child th {
	border-bottom: 1px solid var(--ink);
	font-family: var(--font-body);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-soft);
}

.prices th.right, .prices td.right {
	text-align: right;
}

.prices td {
	font-weight: normal;
	white-space: nowrap;
	border-bottom: 1px solid var(--ink-faint);
}

/* TOC — quick-link index chips */
#toc .commands {
	margin-bottom: 5px;
}

.toc_entry {
	display: inline-block;
	margin: 0 6px 8px 0;
	background-color: rgba(255, 255, 255, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.70);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--ink);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.01em;
	padding: 6px 14px;
	border-radius: 999px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

	.toc_entry:hover {
		background-color: rgba(12, 60, 80, 0.60);
		border-color: rgba(255, 255, 255, 0.35);
		color: white;
	}

/* Files of page */
#page_files {
	margin-bottom: 20px;
}

	#page_files .list {
		margin-bottom: 10px;
	}

	#page_files img, #page_files input[type=image] {
		vertical-align: middle;
	}

/* Gallery */
#gallery_page_content input[type=image] {
	vertical-align: middle;
}

#gallery_preview {
	position: fixed;
	bottom: 0;
	left: 42px;
	right: 0;
	height: 56px;
	text-align: left;
	z-index: 3;
	background-color: rgba(16, 17, 19, 0.35);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	padding-top: 4px;
}

	#gallery_preview nav {
		position: fixed;
		bottom: 0;
		height: 60px;
		z-index: 3;
		width: 42px;
		background-color: rgba(16, 17, 19, 0.55);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
	}

		#gallery_preview nav .button {
			color: white;
		}

		#gallery_preview nav img {
			margin-top: 10px;
		}

		#gallery_preview nav.left {
			left: 0;
			text-align: left;
		}

		#gallery_preview nav.right {
			right: 0;
			text-align: right;
		}

	#gallery_preview .preview_with_commands {
		display: inline;
	}

	#gallery_preview img.preview {
		display: inline-block;
		height: 48px;
		cursor: pointer;
		border-radius: 8px;
		margin-right: 2px;
		opacity: 0.6;
		filter: grayscale(60%);
		transition: opacity 0.2s ease, filter 0.2s ease;
	}

		#gallery_preview img.preview:hover {
			opacity: 1;
			filter: none;
		}

		#gallery_preview img.preview.current {
			opacity: 1;
			filter: none;
			outline: 2px solid white;
			outline-offset: -2px;
		}

	#gallery_preview .preview_with_commands a i {
		position: relative;
		left: -40px;
		z-index: 6;
		top: -10px;
		color: red;
	}

#gallery_image_upload {
	position: fixed;
	bottom: 120px;
	right: 20px;
	background-color: var(--glass-solid);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	color: var(--ink);
	padding: 20px;
	z-index: 3;
	border-radius: 14px;
	border: 1px solid var(--glass-edge);
	box-shadow: var(--shadow-card);
}

#current_gallery_picture {
	position: fixed;
	top: 0;
	left: 0;
	min-width: 100%;
	min-height: 100%;
	z-index: 1;
}

#gallery_cover {
	background-color: var(--glass-solid);
	height: 2000px;
	width: 100%;
	position: relative;
	top: -5px;
}

/* Login */
#login {
	text-align: center;
	color: var(--ink);
	background-color: var(--glass);
	-webkit-backdrop-filter: blur(18px) saturate(1.3);
	backdrop-filter: blur(18px) saturate(1.3);
	border: 1px solid var(--glass-edge);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	width: min(420px, calc(100vw - 32px));
	margin: 14vh auto 0 auto;
	padding: 36px 32px;
}

	#login h2 {
		margin-top: 0;
	}

	#login input[type=image] {
		margin-top: 10px;
	}

/* Mobile styles*/
@media (min-aspect-ratio: 3/2) {
	#current_gallery_picture {
		width: 100%;
	}
}

@media (max-aspect-ratio: 3/2) {
	#current_gallery_picture {
		height: 100%;
	}
}

#engine {
	position: fixed;
	right: 50px;
	bottom: 5px;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.55);
	font-style: italic;
	z-index: 2;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

	#engine a {
		color: inherit;
		font-style: italic;
		text-decoration: none;
	}


@media screen and (max-width : 840px) {
	#hamburger_menu {
		display: inline-block;
		align-self: center;
	}

	#company_logo_panel {
		text-align: center;
		display: flex;
		justify-content: space-between;
		align-items: center;
		background-color: var(--glass-solid);
		-webkit-backdrop-filter: blur(18px) saturate(1.3);
		backdrop-filter: blur(18px) saturate(1.3);
		padding: 10px 16px;
		position: sticky;
		top: 0;
		z-index: 4;
		border-bottom: 1px solid var(--ink-faint);
	}

		#company_logo_panel img {
			display: block;
			position: static;
			max-height: 64px;
			max-width: 60%;
			z-index: 3;
			text-align: center;
			filter: none;
		}

	#main_menu {
		position: fixed;
		top: 84px;
		left: 12px;
		right: 12px;
		bottom: auto;
		transform: none;
		width: auto;
		max-width: none;
		height: auto;
		max-height: calc(100vh - 108px);
		overflow-y: auto;
		box-sizing: border-box;
		display: none;
		z-index: 999;
		flex-direction: column;
		background-color: var(--glass-solid);
		-webkit-backdrop-filter: blur(24px) saturate(1.3);
		backdrop-filter: blur(24px) saturate(1.3);
		border-radius: 20px;
		border: 1px solid var(--glass-edge);
		box-shadow: var(--shadow-card);
		padding: 8px;
	}

	body:has(#gallery_preview) #main_menu {
		bottom: auto;
	}

		#main_menu .menu_item {
			text-align: center;
			border-bottom: none;
			border-radius: 12px;
			width: 100%;
			box-sizing: border-box;
			font-size: 17px;
		}

			#main_menu .menu_item a {
				min-width: 0;
				display: block;
			}

		#main_menu .menu_item.social {
			padding: 4px 0;
		}

	#text_page {
		left: 0;
		right: 0;
		width: auto;
		margin: 12px;
		padding: 22px 18px;
		bottom: auto;
		top: auto;
		position: static;
		border-radius: 20px;
		text-align: left;
	}

		#text_page p img {
			max-width: 100%;
		}

	#gallery_preview {
		position: static;
		background-color: var(--glass-solid);
		text-align: center;
		top: auto;
		bottom: auto;
		height: auto;
		padding: 8px 0;
	}

	#current_gallery_picture {
		position: static;
		background-color: var(--glass-solid);
		top: auto;
		bottom: auto;
		width: 100%;
		z-index: 0;
	}

	#gallery_preview nav.left {
		display: none;
	}

	#gallery_preview nav.right {
		display: none;
	}

	.content figure {
		float: none !important;
		margin: 0 !important;
		text-align: center !important;
		width: auto !important;
		max-width: none !important;
	}

		.content figure img {
			margin-left: auto;
			margin-right: auto;
		}

	.content ul {
		text-align: left;
	}

	body {
		overflow-x: hidden;
	}

	#text_page table {
		display: block;
		overflow-x: auto;
		max-width: 100%;
		-webkit-overflow-scrolling: touch;
	}

	.prices td {
		white-space: normal;
	}

	#engine {
		position: static;
		display: block;
		text-align: center;
		padding: 6px 0;
	}
}
