/*
Theme Name: Gierschke
Theme URI: 
Author: Christian Unverricht
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gierschke
Tags: 
*/

* {
	box-sizing: border-box;
}
html {
	/* more flexible font sizing */
	font-size: clamp(1rem, 1vw, 1.15rem);
}
strong {
	font-weight: 600;
}
html,
body {
	scroll-behavior: smooth;
	overflow-x: hidden;
	position: relative;
}
body::before {
	/* vignette */
	content: "";
	position: absolute;
	inset: 0;
	/* linear gradient left to right */
	background: linear-gradient(
		to right,
		hsla(0, 0%, 100%, 0.5),
		transparent 10%,
		transparent 90%,
		hsla(0, 0%, 100%, 0.5)
	);
	pointer-events: none;
	width: 100%;
	height: 100%;
	z-index: -1;
}

a {
	transition: color 0.3s ease-in-out;
}
figure > img {
	display: block;
}
.is-layout-constrained
	> :where(
		:not(.alignleft):not(.alignright):not(.alignfull)
	).button-primary-container {
	margin-left: 0 !important;
}
.gb-site-header.gb-site-header-b051e7ad {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 100;
}
.gb-text-61f9c6b9 {
	opacity: 1;
	transition: opacity 0.3s;
}
body.scrolled .gb-text-61f9c6b9 {
	height: 0;
	opacity: 0;
}
.gb-element-64f1e967 {
	transition: row-gap 0.3s ease-in-out;
}
body.scrolled .gb-element-64f1e967 {
	row-gap: 0px;
}
/* pseudo-header height */
.gb-element-6a7369aa {
	transition: height 0.3s ease-in-out;
	height: var(--calc-height);
}

/* custom separator */
.is-style-separator-left {
	background: linear-gradient(45deg, #bcb3a5, transparent);
	margin-left: 0;
}
.is-style-separator-right {
	background: linear-gradient(-45deg, #bcb3a5, transparent);
	margin-right: 0;
	margin-left: auto;
}

/* ----------------- IMAGE COMPARISON ----------------- */

.compare {
	--mask-width: 50%;
	--handle-size: 32px;

	position: relative;
	border: 1px solid rgb(0 0 0 / 0.05);
	border-radius: 5px;
	overflow: hidden;
}

.compare__separator {
	position: absolute;
	top: 0;
	height: 100%;
	left: var(--mask-width);
	width: 2px;
	margin-left: -1px;
	background: black;
	z-index: 5;
	pointer-events: none;
}

.compare__image-one {
	width: 100%;
	height: auto;
	display: block;
}

.compare__mask {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	z-index: 3;
	background: white;
	overflow: hidden;
	width: var(--mask-width);
}

.compare__image-two {
	height: 100%;
	width: auto;
}
/* fixed aspect ratio */
.compare__image-two,
.compare__image-one {
	aspect-ratio: 3/2;
	object-fit: cover;
}

.compare__input {
	appearance: none;
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
	position: absolute;
	top: 0;
	left: calc(var(--handle-size) / -2);
	width: calc(100% + var(--handle-size));
	height: 100%;
	opacity: 0;
	z-index: 5;
	cursor: col-resize;
	background-color: transparent;
}

/* Firefox */
.compare__input::-moz-range-track {
	height: 100%;
}

.compare__input::-moz-range-thumb {
	height: 100%;
	border-radius: 0;
	width: var(--handle-size);
	border: none;
}

/* Webkit */
.compare__input::-webkit-slider-runnable-track {
	height: 100%;
}

.compare__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	height: 100%;
	border-radius: 0;
	width: var(--handle-size);
	border: none;
}

.compare__icon {
	position: absolute;
	z-index: 2;
	color: #333;
	width: var(--handle-size);
	height: var(--handle-size);
	top: 50%;
	left: var(--mask-width);
	transform: translate(-50%, -50%);
	padding: 6px;
	border: 2px solid currentColor;
	border-radius: 50%;
	background: rgba(255, 255, 255, 1);
}

.compare__icon path {
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2px;
}


.compare__mask::before,
.compare::after {
	position: absolute;
	top: 1rem;
	z-index: 2;
	padding: 0.4rem 0.65rem;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.45);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
	pointer-events: none;
}


.compare::after {
	content: "Nachher";
	right: 1rem;
}

.compare__mask::before {
	content: "Vorher";
	left: 1rem;
}

.compare {
	transform-style: preserve-3d;
}

.compare,
.compare__mask,
.compare__input,
.compare__image-one,
.compare__separator {
	will-change: transform;
	transition:
		transform 1000ms,
		outline 1000ms,
		box-shadow 1000ms,
		opacity 1000ms;
	transition-timing-function: ease-out;
	outline: 2px solid transparent;
}

.compare__input::-moz-range-thumb {
	transition-timing-function: ease-out;
	transition:
		outline 1000ms,
		background-color 1000ms;
	outline: 2px solid transparent;
}

.compare__input::-webkit-slider-thumb {
	transition-timing-function: ease-out;
	transition:
		outline 1000ms,
		background-color 1000ms;
	outline: 2px solid transparent;
}
/* css fix for anchor navigation */
:target::before {
	content: "";
	display: block;
	height: calc(var(--calc-height) * 2);
	margin-top: calc(calc(var(--calc-height) * -1) * 2);
	visibility: hidden;
}
