/*
 Theme Name:   RESidur GP Childtheme
 Theme URI:    https://bigears.at
 Description:  Auf GeneratePress basierendes Childtheme für RESidur.
 Author:       Big Ears Webagentur
 Author URI:   https://bigears.at
 Template:     generatepress
 Version:      0.1
*/

:root {
	--res-red: #cd1719;
	--res-white: #fff;
	--res-space: 1.5rem;
	--res-width: min(90vw, max(65vw, 60rem));
	--res-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 12.5l3 3 6-6.5'/%3E%3C/svg%3E");
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--res-red);
	color: var(--res-white);
	font-family: var(--gp-font--figtree), sans-serif;
	font-weight: 300;
	font-size: clamp(1rem, .85rem + .45vw, 1.4rem);
	line-height: 1.85;
}

body::before {
	content: "";
	position: fixed;
	right: -8vw;
	bottom: -10vh;
	z-index: 0;
	width: 45vw;
	aspect-ratio: 529 / 1049;
	background: rgb(255 255 255 / .06);
	-webkit-mask: url("/wp-content/uploads/2026/10/residur-leaf.svg") center / contain no-repeat;
	mask: url("/wp-content/uploads/2026/10/residur-leaf.svg") center / contain no-repeat;
	pointer-events: none;
}

a,
a:hover,
a:focus {
	color: inherit;
}

a:hover {
	text-decoration-thickness: 2px;
}

a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

strong {
	font-weight: 800;
}

.site-header,
.site,
.separate-containers .inside-article,
.site-footer,
.site-info {
	background: transparent;
	color: inherit;
}

.site-header .inside-header {
	justify-content: flex-start;
	width: var(--res-width);
	max-width: none;
	margin-inline: auto;
	padding: calc(var(--res-space) * 3.5) 0 calc(var(--res-space) * 1.5);
}

.site-logo {
	margin: 0;
}

.site-logo .header-image {
	width: min(100%, max(28vw, 18rem));
	height: auto;
}

#site-navigation,
#mobile-menu-control-wrapper,
.entry-header {
	display: none;
}

#page.grid-container {
	max-width: none;
	padding: 0 var(--res-space);
}

.separate-containers .site-main {
	margin: 0;
}

.separate-containers .inside-article {
	padding: 0;
}

.entry-content > * {
	width: var(--res-width);
	margin-inline: auto;
}

.res-services {
	margin: clamp(2rem, 5vw, 4rem) auto clamp(1.5rem, 3vw, 3rem);
	list-style: none;
}

.res-services li {
	--d: 0s;
	position: relative;
	display: flex;
	gap: .65em;
	margin: 0 0 1rem;
}

.res-services li:nth-child(2) { --d: .3s; }
.res-services li:nth-child(3) { --d: .6s; }
.res-services li:nth-child(4) { --d: .9s; }
.res-services li:nth-child(5) { --d: 1.2s; }

.res-services li::before,
.res-services li::after {
	content: "";
	width: 1.3em;
	height: 1.3em;
	margin-top: .2em;
	background: currentColor;
}

.res-services li::before {
	--p: 100%;
	flex: 0 0 1.3em;
	border-radius: 50%;
	-webkit-mask:
		radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.25px)),
		conic-gradient(#000 var(--p), transparent 0);
	-webkit-mask-composite: source-in;
	mask:
		radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.25px)),
		conic-gradient(#000 var(--p), transparent 0);
	mask-composite: intersect;
	animation: res-ring .7s cubic-bezier(.65, 0, .35, 1) var(--d) both;
}

.res-services li::after {
	position: absolute;
	top: 0;
	left: 0;
	-webkit-mask: var(--res-check) center / contain no-repeat;
	mask: var(--res-check) center / contain no-repeat;
	animation: res-check .35s cubic-bezier(.33, 1, .68, 1) calc(var(--d) + .55s) both;
}

@property --p {
	syntax: "<percentage>";
	inherits: false;
	initial-value: 100%;
}

@keyframes res-ring {
	from { --p: 0%; }
	to { --p: 100%; }
}

@keyframes res-check {
	from { clip-path: inset(0 100% 0 0); }
	to { clip-path: inset(0); }
}

@media (prefers-reduced-motion: reduce) {
	.res-services li::before,
	.res-services li::after {
		animation: none;
	}
}

.res-contact {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 2rem;
	padding: var(--res-space) 0;
}

.res-contact > * {
	margin: 0;
}

.res-contact > :nth-child(-n + 2) {
	flex-basis: 100%;
}

.res-contact > :first-child {
	margin-bottom: .5rem;
	font-size: .8em;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.gb-carousel {
	margin-block: var(--res-space);
}

.gb-carousel-item img {
	display: block;
	aspect-ratio: 3 / 2;
	height: auto;
}

.gb-carousel .gb-carousel-control {
	width: auto;
	height: auto;
	padding: .35rem;
	background: transparent;
	color: var(--res-white);
	border: 0;
	border-radius: 0;
	opacity: .7;
	transition: opacity .2s;
}

.gb-carousel .gb-carousel-control:is(:hover, :focus, :focus-visible) {
	background: transparent;
	color: var(--res-white);
	opacity: 1;
}

.gb-carousel .gb-carousel-control:is(.is-disabled, :disabled) {
	opacity: .25;
}

.gb-carousel .gb-carousel-control .gb-carousel-control-icon svg {
	width: 1rem;
	height: 1rem;
}

.gb-carousel .gb-carousel-pagination[data-pagination-type="progressbar"] {
	height: 2px;
	margin-inline: .75rem;
	background: rgb(255 255 255 / .3);
}

.gb-carousel .gb-carousel-pagination .gb-carousel-pagination-progressbar-fill {
	background: var(--res-white);
}

.site-footer {
	margin-top: auto;
}

.site-info .inside-site-info {
	justify-content: flex-start;
	width: var(--res-width);
	max-width: none;
	margin-inline: auto;
	padding: var(--res-space) 0;
	font-size: .8em;
}

@media (max-width: 767px) {
	.site-header .inside-header {
		padding-top: var(--res-space);
	}
}