/*
Theme Name: Koigarten Willischza
Theme URI: https://www.https://www.koigarten-burg.de/
Description: Theme für Koigarten Willischza
Version: 0.1
Author: Red Aqua Media
Author URI: https://www.red-aqua-media.de/
*/

@font-face {
	font-family: 'handlee'; 
	font-weight: normal;
	src: url('handlee.woff2') format('woff2'), url('handlee.woff') format('woff');
	font-display: swap;
}

@font-face {
	font-family: 'shanghai';
	font-weight: normal;
	src: url('shanghai.woff2') format('woff2'), url('shanghai.woff') format('woff');
	font-display: swap;
}

body {
	margin: 0;
	background: #fffde2 url('hintergrund.avif') center/cover no-repeat fixed;
	color: #111;
	font: 14pt/1.3 handlee, sans-serif;
}


/* HEADER --> LOGO */

header {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: url('header-bar.avif');
	background-position-y: 100%;
	background-position-x: 50%;
	background-size: 2000px;
	background-size: min(2000px, 213vw);
	text-align: center;
	z-index: 2;
	height: min(205px, 21.65vw);
	transition: height 500ms ease-in;
}

#header__navicon-checkbox {
	display: none;
}

#header__gfx {
	position: absolute;
	display: block;
	bottom: 38px;
	bottom: min(38px, 4vw);
	left: 50%;
	transform: translateX(-50%);
	width: 710px;
	max-width: 75%;
	height: 160px;
	max-height: 16.9vw;
	cursor: pointer;
}

#header__gfx img {
	display: block;
	position: absolute;
	width: auto;
	height: 100%;
}

#header__gfx__logo {
	animation: logo-nav-swap 16s infinite;
}


img#header__gfx__openmenu {
	/* 	display: none; */
	animation: nav-logo-swap 16s infinite;
}

@keyframes nav-logo-swap {
	0%, 40% { opacity: 1; transform: translateY(0px); }
	50% { opacity: 0; transform: translateY(-6px); }
	90% { opacity: 0; transform: translateY(18px) scale(1.5); }
}

@keyframes logo-nav-swap {
	0%, 100% { opacity: 0; transform: translateY(-6px); }
	40% { opacity: 0; transform: translateY(18px) scale(1.5); }
	50%, 90% { opacity: 1; transform: translateY(0px); }
}


/* NAV */

nav {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	justify-content: center;
	align-items: center;
	height: 66vh;
}

nav ul {
	list-style: none;
	text-align: center;
	padding: 0;
}

nav a {
	display: block;
	padding: .2em 0;
	font: 8vw shanghai, serif;
	color: #e3000f;
	text-decoration: none;
}


/* NAVICON CLICKED */
@media (orientation: portrait) {
	:has(#header__navicon-checkbox:checked) header {
		height: 90vh;
	}

	:has(#header__navicon-checkbox:checked) nav {
		display: flex;
		animation: nav-fadein 1s 1;
	}

	:has(#header__navicon-checkbox:checked)	img#header__gfx__logo {
		animation: none;
	}

	:has(#header__navicon-checkbox:checked) img#header__gfx__openmenu {
		display: none;
		animation: none;
	}
}

@keyframes nav-fadein {
	0%, 30% { opacity: 0; transform: scale(.5); }
	100% { opacity: 1; transform: scale(1); }
}


/* HERO VIDEO */

#hero-video {
	display: block;
	position: absolute;
	top: 0;
	width: 100%;
	height: 100vw;
	background: url('header/header-640x640.webp') center/cover;
}


/* MAIN */

h1, h2 {
	font-family: shanghai, serif;
	font-weight: normal;
	mix-blend-mode: color-burn;
	line-height: 1;
}

h1 {
	display: block;
	font-size: 2em;
	text-align: center;
	margin: 100vw 0 0;
	padding: 1em .25em .5em;
}

h2 {
	text-decoration: underline;
	margin-top: 2em;
}

main {
	display: block;
	position: static;
	margin: auto;
	max-width: 950px;
	padding: .75em;
	padding-top: 0;
}

main img {
	padding: 1px;
	box-shadow: 0 5px 30px 0 rgba(51,0,0,.7);
}


/* KOIS 

.koi {
position: absolute;
width: 33vw;
max-width: 180px;
height: 33vw;
max-height: 180px;
user-select: none;
filter: drop-shadow(-10px 10px 30px #000000);
background-position: center;
background-size: contain;
background-repeat: no-repeat;
}

.koi__rot {
background-image: url('koi-rot.avif');
transform: translate(-26%, -42%);
}

.koi__gelb {
background-image: url('koi-gelb.avif');
transform: translate(24%, -20%);
right: 0;
}
*/

/* FOOTER */

footer {
	display: block;
	margin-top: 4em;
	padding: 2em .2em;
	text-align: center;
	font-size: .85em;
	background: linear-gradient(
		to right,
		rgba(0,0,0,0.7) -50%,
		rgba(227,0,15,0.7) 50%,
		rgba(0,0,0,0.7) 150%
	);
	color: #fff;
}

footer b {
	font: 1.5em shanghai, serif;
}

footer a {
	color: inherit;
}


/* LANDSCAPE ORIENTATION */

@media (orientation: landscape) {
	body {
		font-size: 16pt;
	}

	header {
		transition: all 500ms ease;
	}

	header.hidden {
		transform: translateY(-222px);
		opacity: 0;
	}

	#header__gfx {
		cursor: unset;
	}

	img#header__gfx__logo {
		animation: none;
	}

	img#header__gfx__openmenu {
		display: none;
		animation: none;
	}

	#hero-video {
		background-image: url('header/header-1920x900.webp');
		height: 46.9vw;
		object-fit: cover;
	}

	nav {
		display: flex;
		background: linear-gradient(
			to right,
			rgba(243,110,15,0.75) 0%,
			rgba(255,237,0,0.75) 50%,
			rgba(243,110,15,0.75) 100%);
		height: 66px;
		position: sticky;
		top: 0;
		margin-top: 46.9vw; /* Fallback */
		margin-top: calc(46.9vw - 66px);
	}

	nav ul {
		margin: 0;
	}

	nav li {
		display: inline-block;
		margin: 0;
		padding: 0;
	}

	nav a {
		display: inline-block;
		padding: .1em .6em;
		font-size: 20pt;
		color: #fff;
		line-height: 1;
		text-shadow: 0px 5px 10px rgba(0,0,0,.7);
		transition: transform 300ms ease;
	}

	nav a[aria-current="page"] {
		text-decoration: underline;
	}

	nav a:hover {
		transform: scale(1.2);
	}

	h1 {
		margin-top: 0;
		font-size: 3.5em;
		padding: 1.5em .5em .8em;
	}
}


/* WORDPRESS STYLES */

.aligncenter {
	text-align: center;
}

.wp-block-group {

}

.wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-evenly;
	margin: 0;
}

.wp-block-gallery .wp-block-image {
	max-width: 47%;
}

.wp-block-image {
	margin: 0;
}

.wp-block-image img {
	max-width: 100%;
	height: auto;
}

.wp-block-image figcaption {
	font-style: italic;
	font-size: .8em;
}


/* PHOTOSWIPE */

.pswp {
	--pswp-bg: #fffde2;
	--pswp-placeholder-bg: rgba(255,255,255,.5);
	/* --pswp-preloader-color: rgba(79,79,79,.4); */ 
	/* --pswp-preloader-color-secondary:rgba(0,0,0,.9); */
	--pswp-icon-color: #fffde2;
	--pswp-icon-color-secondary: #111;
	--pswp-icon-stroke-color: #111;
	/* 	--pswp-icon-stroke-width: 2px; */

	.pswp__dynamic-caption {
		background-color: #fffde2;
		color: #111;
		padding-top: 1em;
		background: linear-gradient(
			to bottom,
			rgba(255,253,226,0) 0%,
			rgba(255,253,226,1) 80%);
	}
}


/* NINJA FORMS */

.nf-form-cont {
	margin: 1em auto;
	max-width: 600px;
}

.nf-field {
	margin-top: 1em;
}

.nf-field-label {
	margin: 0 !important;
}

.nf-field-label label {
	font-weight: normal !important;
}

.nf-element,
.time-wrap select {
	font: inherit;
	color: inherit !important;
	padding: .5em;
	width: 100% !important;
	background-color: rgba(0,0,0,.16) !important;
	border: 0;
}

.nf-response-msg {
	padding: 0 .5em;
	border: 2px dashed;
	text-align: center;
}

.nf-error-msg {
	color: #fff !important;
	background-color: #900;
	padding: .25em;
	width: 100%;
}


/* Popup Builder */

.sgpb-popup-dialog-main-div-wrapper h2  {
	padding-top: 0;
	margin-top: .5em;
	mix-blend-mode:  normal;
}


/* DEBUGGER */

/* * {
border: 1px dotted;
outline: 1px dotted;
} */