

:root {
	
	--primary-color: #083443;
	
	--sidepadding: 7vw;
	
	--bs-body-color:#707070;
	--bs-body-bg:#FFFFFF;
	--bs-body-font-size:20px;
	--bs-border-radius: 1rem;
	
}




a {
	text-decoration: none;
	color:var(--primary-color);
	&:hover {text-decoration-thickness: 3px;text-underline-offset: 5px;};
}


#header {
	padding:3rem var(--sidepadding);
	button {display:none;}
}

.px-5 {padding-left:var(--sidepadding)!important;padding-right:var(--sidepadding)!important;}


a {
	&:hover {
			text-decoration:underline;
			text-underline-offset: 4px;
		    text-decoration-thickness: 2px;
			};
}

h1 {font-weight:700;font-size:60px;margin-bottom:1.5rem;}
h2 {font-weight:700;font-size:40px;margin-bottom:1rem;}
h4 {font-size:inherit;font-weight:400;line-height:1.5;}

figure {margin:0;}

figcaption {
    /*font-size: 16px;*/
    text-align: center;
    margin-top: 6px;
}

.btn {
    --bs-btn-padding-x: 1.2rem;
    --bs-btn-padding-y: 0.6rem;
    --bs-btn-font-size: inherit;
	--bs-btn-border-radius: 2rem;
	img {margin-right: 6px;filter: invert(1) saturate(0) brightness(3);}
	&:hover {
		text-decoration:none;
		img {filter: none;}
	}
}

.btn-primary {
	--bs-btn-color: var(--primary-color);
    --bs-btn-bg: rgba(255,255,255,0.9);
    --bs-btn-border-color: transparent;

	--bs-btn-hover-color: var(--bs-body-bg);
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: transparent;

	--bs-btn-active-color: var(--bs-body-bg);
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: transparent;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-secondary {
	border-width:2px;
	--bs-btn-hover-color: var(--primary-color);
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: rgba(0,0,0,0.1);

	--bs-btn-color: var(--bs-body-bg);
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: transparent;

	--bs-btn-active-color: var(--bs-body-bg);
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: transparent;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
	



.form-control {
	background:#F9F9FB;
    font-size: inherit;
	color:#b9b9b9;
	border-radius:0;
}
.form-control:focus {
    color: black;
    background-color: white;
}

.form-control[type="search"] {
    padding-left: 3rem;
    background-image: url(/public/images/icon-search.svg);
    background-size: 1.3rem;
    background-repeat: no-repeat;
    background-position: .8rem center;
	margin:2rem auto;
	width:33%;
}

.logo {
    height: 10rem;
    width: 20rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: inline-block;
    text-decoration: none;
	&:hover {text-decoration:none;}
}


main {
	transform-origin: 50% 20%;
    transition: transform 0s .4s,opacity .5s;
	&.fadeOut {opacity:0;transform:scale(0.2);}
	&.fadeOut.fadeIn  {transition: transform .5s,opacity .5s;
		transform: scale(1)!important;
		opacity: 1!important;
	}
}




.grid-2 {
	display:grid;
	grid-template-columns: 1fr 1fr;
	gap:6vw;
}
.grid-3 {
	display:grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap:6vw;
}
.grid-4 {
	display:grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap:6vw;
}

.imgpreview img, .grid-4 img {
    width: 100%;
}


.imgpreview {
	display:none;
	position:relative;
	margin:.5rem 0 0;
	button {position:absolute;top: 0.6rem;right: 0.7rem;padding:0;color:white;line-height: 0;}
	input {margin-top: .5rem;}
	img {border-radius: var(--bs-border-radius);}
}

.files label {
	box-shadow:0 0 1rem -.5rem;
	padding:0.5rem;
}

#buecher .d-flex {
	max-width: 80rem;
	margin-left:auto!important;
	margin-right:auto!important;
}

.show-I .d-flex > *:nth-child(n+4) {display:none;}
.show-II .d-flex > *:nth-child(n+7) {display:none;}
.show-III .d-flex > *:nth-child(n+10) {display:none;}
.show-III .d-flex > *:nth-child(n+13) {display:none;}
.show-IIII .d-flex > *:nth-child(n+16) {display:none;}
.show-IIIII .d-flex > *:nth-child(n+19) {display:none;}
.show-IIIIII .d-flex > *:nth-child(n+22) {display:none;}
.show-IIIIIII .d-flex > *:nth-child(n+25) {display:none;}
.show-IIIIIIII .d-flex > *:nth-child(n+28) {display:none;}
.show-IIIIIIIII .d-flex > *:nth-child(n+31) {display:none;}
.show-IIIIIIIIII .d-flex > *:nth-child(n+34) {display:none;}



/****************************************************/



.buchdetail {
	background:url(/public/images/background.jpg);
	min-height: 100vh;
	/*h1 {font-weight:400;font-size:45px;}*/
	
	.foto {
		aspect-ratio: .73;
		object-fit: cover;
	}

.kommentare div h5 {
    /*font-size: 14px;*/
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;

	&+p {
    	/*font-size: 14px;*/
    	color: #6D7278;
		font-weight:200;
	}
	}

}











.galerie {
	
	    display: grid;
	    grid-template-columns: 1fr 1fr 1fr 1fr;
	    gap: 1.5rem;
	    padding: 0;
	    max-width: 30rem;
	
	h3,h4,h5,strong {
		font-size:inherit;
		font-weight:bold;
    grid-column: span 4;
	margin:0;
}
	
	
	img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
		max-width:12rem;
    height: auto;
    object-position: center;
		box-shadow:0 .5rem .6rem -.4rem rgba(0,0,0,0.3);
}
}



.toast {
    --bs-toast-padding-x: 1.75rem;
    --bs-toast-max-width: 50vw;
    --bs-toast-font-size: 1.5rem;
}


.carousel-control-next, .carousel-control-prev {
    color: #fff;
    opacity: 1;
    left: 2rem;
}
.carousel-control-next {
	right:2rem;
	left:auto;
}

.carousel-control-next-icon, .carousel-control-prev-icon {
    width: 3rem;
    height: 3rem;
	    filter: drop-shadow(0px 0px 8px white);
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708'/%3e%3c/svg%3e");
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0'/%3e%3c/svg%3e");
}



#kerzenmeer {
	position: relative;
	overflow:hidden;
	background: url(/public/images/bg.jpg);
	min-height: 30rem;
	height: 100vh;
	background-size: cover;
	
	h2 {
		font-size:40px;
    position: absolute;
    color: white;
    z-index: 99;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
}
	p {
    position: absolute;
    z-index: 11;
    left: 50%;
    max-width: 51rem;
    top: 23%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-weight: 200;
    width: 80%;
}
	
	
	button {
	    position: absolute;
	    bottom: 50%;
	    left: 50%;
	    transform: translate(-50%, -50%);
	}
	.btn-primary {
	    --bs-btn-color: #112233;
	    --bs-btn-bg: white;
	    --bs-btn-border-color: white;
	}
	
	.space {
		position:relative;
		height:185vh;
		transform: translateY(-85vh);
		width:100%;
		top:0;left:0;
		perspective: 50px;
		overflow:hidden;
		transform-style: preserve-3d;
		perspective-origin: 50% -90%;
		mix-blend-mode: screen;
		}
	.space > * {
		position: absolute;
		background: url(/public/images/stern.jpg);
		height: 9rem;
		width: 9rem;
		background-size: contain;
		background-repeat: no-repeat;
		background-position: center;
		mix-blend-mode: screen;

		--age: 1;
		transform: translate(-50%,-50%) scale(calc(1 - 1 * (var(--age) / 90))) translateZ(calc(max(0rem,(-1 * (var(--age) * var(--age)) / 90 + 7) * 0.1rem)));
		opacity: calc(1 - (var(--age) / 90));
		transition:transform .1s linear,opacity .5s;

		&::after {
			content:'';
			background-image:url(/public/images/kerze.jpg);
			background-size:contain;
			background-repeat:no-repeat;
			position:absolute;
			width: 13rem;
            height: 17rem;
            top: 0%;
            left: 50%;
            transform: translate(-45%, -3.5rem);
            mix-blend-mode: screen;
            opacity: calc(1.6 - var(--age));
        }

		&.blink {opacity:.5!important;}
		}
}


@media (max-width: 991px) {
	
	.grid-4,.grid-3 {
		
		grid-template-columns: 1fr 1fr;
		
	}
	
		header {
    position: static;
    padding: 1rem calc(var(--sidepadding) + 2rem);
}
	
	.w-25 {
    width: 85% !important;
}
	
	
}


@media (max-width: 578px) {
	
	.grid-4,.grid-3,.grid-2 {
		
		grid-template-columns: 1fr;
		
	}
	

	
	#kerzenmeer {
		button {bottom: 33%;}
		
			.space {
		transform: translateY(-22vh);
		
	}
	
}
