/*
Theme Name: Schuhr Sound
Theme URI: https://www.schuhr-sound.de/
Description: Theme für Schuhr Sound
Version: 1.10
Author: Red Aqua Media
Author URI: https://www.red-aqua-media.de/
Tags: customized, Formidable included, Flickity included
*/


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

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

body {
	margin: 0;
	font: 14pt redhat, sans-serif;
	color: #333;
	/* blurry // background: #ccc none center/cover no-repeat fixed; */
	background-color: #fff;
	overflow-x: hidden;
}

main a, main a:visited {
	color: #55f;
}

/* #blurry-bg {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	filter: blur(15px);
	background: #ccc url('tonstudio.webp') center top/100% repeat fixed;
} */


/* HEADER */

header {
	position: relative;
	margin-top: 16vw;
	height: 50vw;
	background: url('tonstudio.webp') center 10vw/100% no-repeat fixed;
	/* filter: brightness(41%); */
}

h1 {
	position: absolute;
	top: calc(50vw - 2em);
	left: 0;
	right: 0;
	width: 80%;
	max-width: 800px;
	margin: auto;
	font-weight: normal;
	font-size: 18pt;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.2;
	background-color: rgba(255,255,255,.9);
	border-left: 3px solid rgba(0,153,255,.9);
	border-right: 3px solid rgba(0,153,255,.9);
	padding: .5em;
}


/* NAV */

#logo {
	position: fixed;
	top: 1vw;
	left: 4vw;
	width: 30vw;
}

#navicon-checkbox {
	display: none;
}

#navicon {
	position: fixed;
	top: 3vw;
	left: 85vw;
	width: 12vw;
	height: 10vw;
	z-index: 2;
	background-image: url("data:image/svg+xml,%3Csvg version='1.1' viewBox='0 0 42 37' xmlns='http://www.w3.org/2000/svg' fill='%23333333'%3E%3Crect width='42' height='5'/%3E%3Crect y='16' width='42' height='5'/%3E%3Crect y='32' width='42' height='5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	cursor: pointer;
}

nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 16vw;
	background-color: #fff;
	z-index: 1;
	text-align: center;
	overflow: hidden;
	-webkit-box-shadow: 0 0 24px 0 #333;
	box-shadow: 0 0 24px 0 #333;
	-webkit-transition: all 400ms ease;
	transition: all 400ms ease;
}

nav ul {
	margin-top: 26vw;
	list-style: none;
	padding: 0;

	text-transform: uppercase;
}

nav ul a {
	display: block;
	font-size: 6vw;
	text-decoration: none;
	color: #777;
	padding: .25em 0;
}

nav a:hover, nav a[aria-current="page"] {
	color: #09f;
}

input[type=checkbox]:checked ~ nav {
	height: 90vh;
}


/* MAIN */

h2, h3 {
	text-align: center;
	margin-top: 2em;
}

main a, main a:visited {
	color: #55f;
}

main {
	/* blurry // background-color: rgba(255,255,255,.75); */
	display: block;
	margin: auto;
	padding: .5em 1em 2em;
	line-height: 1.5;
	max-width: 800px;
}

main p {
	text-align: justify;
	hyphens: auto;
}

main li {
	list-style: none;
	padding-bottom: .5em;
	margin-left: 10px;
}

main > ul li:before {
	content: "✔ ";
	margin-left: -20px;
}

main figure {
	position: relative;
	margin: 1em auto;
	width: 80%;
	max-width: 600px;
}

main figure img {
	width: 100%;
	height: auto;
	outline: 1px solid #09f;
	padding: 1px;
}

main video {
	max-width: 100%;
	outline: 1px solid #09f;
	padding: 1px;
}

.postdate {
	font-size: .8em;
	text-align: right;
	color: #999;
}

/* Simple Parallax

main figure {
	position: relative;
	width: calc(100% + 2em);
	height: 60vh;
	margin: 2em 0 2em -1em;
	overflow: hidden;
}

main figure img {
	position: relative;
	width: 100%;
	height: 60vh;
	object-fit: cover;
} */


/* FOOTER */

footer {
	background-color: #2d2d2d;
	color: #999;
	text-align: center;
	margin: 0;
	display: block;
	padding: 1px;
	font-size: 12pt;
	clear: both;
}

footer p img {
	width: 50%;
	max-width: 320px;
}

footer a {
	opacity: .6;
	color: inherit;
	text-decoration: none;
	transition: all 250ms ease;
	text-transform: uppercase;
}

footer a:hover {
	opacity: 1;
}

#social {
	display: flex;
	justify-content: center;
}

#social div {
	padding: 4px;
	font-size: 9pt;
}

#social img {
	width: auto;
	height: 50px;
	max-height: 10vw;
	display: block;
	margin: auto;
	padding-bottom: 10px;
	opacity: inherit;
}


/* WHATSAPP */

.whatsapp {
	position: fixed;
	left: 70vw;
	top: 2vw;
}

.whatsapp img {
	position: absolute;
	z-index: 7;
	height: 12vw;
	top: 0;
}

.wa-animation img {
	transform: scale(0);
	animation: whatsapp-icon 7s 1 forwards;
}

.whatsapp div {
	z-index: 6;
	position: absolute;
	top: 1.6vw;
	background-color: #25d366;
	color: #fff;
	border-radius: 99px;
	border: 4px solid white;
	white-space: nowrap;
	overflow: hidden;
	right: -6vw;
	width: 0px;
	padding: .3em 0;
	font-size: 9pt;
}

.wa-animation div {
	animation: whatsapp-text 7s 1 forwards;
	visibility: hidden;
}

@keyframes whatsapp-icon {
	0%, 30% { transform: scale(0); }
	33% { transform: scale(1.2); }
	36%, 100% { transform: scale(1); }
}

@keyframes whatsapp-text {
	0%, 40%, 100% { width: 0px; padding: .3em 0; visibility: hidden; }
	50%, 90% { width: 90px; padding: .3em 35px .3em 1em; visibility: visible; }
}


/* WORDPRESS FORMATS */

.has-text-align-center {
	text-align: center;
}

.has-small-font-size {
	font-size: .75em;
}

.wp-block-gallery {
	width: 100%;
}

.wp-block-image {
	display: block;
	margin: auto;
	width: 100%;
	text-align: center;
}


/* EMBEDS */

iframe, .embed img {
	background-color: #fff;
	display: block;
	margin: auto;
	width: 80% !important;
	max-width: 400px !important;
	height: 45vw !important;
	max-height: 225px !important;
	/* outline: 2px solid #09f;
	outline-offset: -1px; */
	-webkit-transition: all 200ms ease;
	transition: all 200ms ease;
}

.instagram-media {
	display: block;
	margin: auto !important;
	width: 80% !important;
	max-width: 400px !important;
	box-sizing: border-box;
	height: 600px !important;
	max-height: unset !important;
	-webkit-transition: unset;
	transition: unset;
}

iframe + p, .embed + p, .instagram-media + script + p {
	margin-bottom: 3em;
}

iframe:hover, .embed img:hover {
	transform: scale(1.2);
}

.instagram-media:hover {
	transform: unset;
}


/* EMBEDS with Random Positions 

.embeds {
	display: block;
	margin: auto;
	max-width: 1600px;
	text-align: center;
}

.embeds iframe,
.embeds img {
	background-color: #fff;
	display: inline-block;
	margin: 10px;
	width: 80% !important;
	max-width: 350px !important;
	height: 40vw !important;
	max-height: 197px !important;
	outline: 2px solid #09f;
	outline-offset: -1px;
	-webkit-box-shadow: 1px 2px 8px 1px #000;
	box-shadow: 1px 2px 8px 1px #000;
	-webkit-transition: all 200ms ease;
	transition: all 200ms ease;
}

.embeds > iframe:nth-child(5n+1), .embeds > a:nth-child(5n+1) img {
	-webkit-transform: rotate(-3deg) translateX(-15px) translateY(-8px);
	transform: rotate(-3deg) translateX(-15px) translateY(-8px);
}

.embeds > iframe:nth-of-type(5n+2), .embeds > a:nth-of-type(5n+3) img {
	-webkit-transform: rotate(3deg) translateX(20px) translateY(12px);
	transform: rotate(3deg) translateX(20px) translateY(12px);
}

.embeds > iframe:nth-of-type(5n+3), .embeds > a:nth-of-type(5n+4) img {
	-webkit-transform: rotate(-1deg) translateX(-12px) translateY(2px);
	transform: rotate(-1deg) translateX(-12px) translateY(2px);
}

.embeds > iframe:nth-of-type(5n+4), .embeds > a:nth-of-type(5n+5) img {
	-webkit-transform: rotate(1deg) translateX(0px) translateY(4px);
	transform: rotate(1deg) translateX(0px) translateY(4px);
}

.embeds > iframe:nth-of-type(5n+5), .embeds > a:nth-of-type(5n+6) img {
	-webkit-transform: rotate(5deg) translateX(-5px) translateY(-11px);
	transform: rotate(5deg) translateX(-5px) translateY(-11px);
}

.embeds iframe:hover,
.embeds a img:hover {
	transform: scale(1.2);
	-webkit-box-shadow: 0px 12px 24px 0px rgba(0,0,0,.5);
	box-shadow: 12px 36px 36px 0px rgba(0,0,0,.5);
}
*/


/* HOME PAGE / OPENER */

#home {
	background-color: #111;
	text-transform: uppercase;
	margin: 0;
	padding: 0;
}

#home main {
	padding: initial;
}

#home #navicon,
#home #blurry-bg,
#home nav,
#home h1,
#home footer {
	display: none;
}

#home header {
	all: unset;
	position: fixed;
	top: calc(40%);
	left: calc(50% - 10vh);
	width: 20vh;
	height: 20vh;
	background: #fff url('schuhr-sound-header.svg') center/90% no-repeat;
	-webkit-box-shadow: 0 0 24px 0 #ddd;
	box-shadow: 0 0 25px 0px #ddd;
	z-index: 3;
}

#home p {
	all: unset;
	position: fixed;
	display: block;
	top: 0;
	left: 0;
	right: 0;
	height: 50%;
	font-size: 8vw;
	overflow: hidden;
}

#home p:last-of-type {
	top: 50%;
}

#home p a {
	position: absolute;
	display: block;
	left: 0;
	right: 0;
	text-align: center;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
	height: 100%;
	line-height: 50vh;
	background: #ccc url('sound-for-film.webp') center/cover no-repeat;
	outline: 1px solid rgba(0,153,255,.9);
	outline-offset: -2vw;
	transition: transform 500ms ease, outline-offset 250ms ease;
}

#home p:last-of-type a {
	background-image: url('dj-event.webp');
}

#home p a:hover {
	transform: scale(1.1);
	outline-offset: -5vw;
}


/* FORMIDABLE */

fieldset {
	border: 0;
	max-width: 600px;
	margin: auto;
}

fieldset > div > div {
	margin: .8em 0;
}

legend {
	display: none;
}

/* .frm_hidden {
	display: none;
} */

.frm_error, .frm_required {
	color: #f00;
}

.frm_error_style, .frm_message {
	background-color: #2d2d2d;
	color: #fff;
	padding: .8em;
}

fieldset input,
fieldset textarea,
fieldset select,
button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	padding: 10px;
	border: 1px solid #545454;
	background-color: inherit;
}

fieldset input:focus,
fieldset textarea:focus,
fieldset select:focus,
button:focus {
	border-color: #09f;
}

.frm_verify {
	visibility: hidden;
}

.frm_radio input {
	display: inline-block;
	width: unset;
	margin-left: 1em;
}


/* PHOTOSWIPE

.pswp__bg {
	background-color: #fff;
	opacity: .8 !important;
}

.pswp__top-bar, .pswp__button:before {
	background-color: rgba(0,0,0,.75) !important;
}

.pswp__img {
	padding: 12px 0;
}
*/

/* FLICKITY */

.flickity-button {
	width: calc(25vw - 20vh) !important;
	height: 100% !important;
	border-radius: unset !important;
}

.flickity-button-icon {
	display: none;
}

.flickity-button.next {
	cursor: url(next.cur), pointer !important;
}

.flickity-button.previous {
	cursor: url(prev.cur), pointer !important;
}


/* RESPONSIVE */

@media (orientation: landscape) {

	/* HEADER */

	header {
		margin-top: 0;
		height: 40vw;
		max-height: 80vh;
		background-position-y: 50px;
	}

	h1 {
		font-size: 36pt;
		border-left-width: 5px;
		border-right-width: 5px;
		top: calc(38vw - 2em);
	}
	
	@media (min-aspect-ratio: 2/1) {
		h1 {
			top: 55vh;
		}
	}


	/* NAV */

	#logo {
		position: absolute;
		top: 10px;
		left: calc(50% - 138px);
		width: 275px;
	}

	#navicon {
		display: none;
	}

	nav, input[type=checkbox]:checked ~ nav {
		position: sticky;
		top: -140px;
		margin-top: 0px;
		padding-top: 150px;
		padding-bottom: 10px;
		height: unset;
	}

	nav ul {
		display: inline;
		margin: 150px 10px 10px;
	}

	nav li {
		display: inline-block;
	}

	nav ul a {
		font-size: 16pt;
		padding: .25em .6em;
	}


	/* MAIN */
	
	main {
		padding-top: 1.5em;
	}


	/* EMBEDS */

	iframe, .embed img {
		width: 50% !important;
		height: 25vw !important;
		float: left;
		margin-right: 10px;
	}
	
	.instagram-media {
		width: 50% !important;
		float: left;
		margin-right: 10px !important;
	}

	iframe:nth-of-type(even),
	.embed:nth-of-type(even) img,
	.embed-right img,
	.instagram-media:nth-of-type(even) {
		float: right;
		margin-right: 0;
		margin-left: 10px !important;
	}

	@media (min-width: 1160px) {
		iframe, .embed img, .instagram-media {
			margin: 0 25px 1em -100px;
		}


		iframe:nth-of-type(even),
		.embed:nth-of-type(even) img,
		.embed-right img,
		.instagram-media:nth-of-type(even) {
			margin: 0 -100px 0 25px;
		}
	}

	iframe + p, .embed + p {
		height: 25vw;
		max-height: 225px;
		opacity: 0;
		-webkit-transition: opacity 250ms ease;
		transition: opacity 250ms ease;
	}
	
		.instagram-media + script + p {
		height: 550px;
		opacity: 0;
		-webkit-transition: opacity 250ms ease;
		transition: opacity 250ms ease;
	}

	iframe:hover + p,
	iframe + p:hover,
	.embed:hover + p,
	.embed + p:hover,
	.instagram-media + script + p:hover {
		opacity: 1;
	}

	/* EMBEDS 

	.embeds iframe,
	.embeds img {
		margin: 40px;
}
	*/


	/* FOOTER */

	footer p {
		margin: 1.5em;
	}

	#social div {
		padding: 8px;
		font-size: inherit;
	}


	/* WHATSAPP */

	.whatsapp {
		position: relative;
		display: inline-block;
		left: initial;
		top: -18px;
		width: 50px;
	}

	.whatsapp img {
		height: 50px;
		top: -14px;
		left: 0;
	}

	.whatsapp div {
		top: -8px;
		right: 25px;
		font-size: 12pt;
	}

	@keyframes whatsapp-text {
		0%, 40%, 100% { width: 0px; padding: .3em 0; visibility: hidden; }
		50%, 90% { width: 135px; padding: .3em 35px .3em 1em; visibility: visible; }
	}


	/* HOME PAGE / OPENER */

	#home header {
		top: calc(50% - 5vw);
		left: calc(50% - 5vw);
		width: 10vw;
		height: 10vw;
	}

	#home p {
		height: 100%;
		width: 50%;
		font-size: 4vw;
	}

	#home p:last-of-type {
		top: 0;
		left: 50%;
	}

	#home p a {
		line-height: 100vh;
	}
}