/*
Theme Name: ctrlf
Author: WeMakeWebsites / Jonas Langreuter
Author URI: https://www.wemakewebsites.de/
Theme URI: 
Tags: full-site-editing, block-patterns
Text Domain: ctrlf
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.4
Version: 1.0

License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Styles intended only for the front.*/
html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/* general */

main.wp-block-group .wp-block-group{
	padding-top: 50px;
	padding-bottom: 50px;
}

main.wp-block-group .wp-block-group .wp-block-group{
	padding-top: 0;
	padding-bottom: 0;
}

main.wp-block-group .wp-block-group.alignfull ~ .wp-block-group{
	margin-block-start: 0;
}

/* header */

header.site-header .wp-block-group{
	position: relative;
	height: 120px;
	border-bottom: 1px solid #8b8b8b;
	margin-bottom: 65px;
}

header.site-header .wp-block-group .wp-block-image{
	position: absolute;
	left: 50%;
	bottom: -32px;
	-webkit-transform: translateX(-50%);
	-moz-transform: translateX(-50%);
	-ms-transform: translateX(-50%);
	-o-transform: translateX(-50%);
	transform: translateX(-50%);
}

/* content */

.wp-block-cover{
	align-items: flex-start;
	padding-top: 24px;
}

.wp-block-cover .wp-block-cover__inner-container{
	max-width: 550px;
}

.wp-block-columns.special-spalten .spacial-pfeil{
	position: relative;
}

.wp-block-columns.special-spalten .spacial-pfeil:after{
	content: '';
	width: 0;
	height: 0;
	border-top: 70px solid transparent;
	border-left: 20px solid var(--wp--preset--color--primary);
	border-bottom: 70px solid transparent;
	position: absolute;
	top: 50%;
	right: -40px;
	-webkit-transform: translateY(-50%);
	-moz-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	-o-transform: translateY(-50%);
	transform: translateY(-50%);
}

.wp-block-columns.special-spalten .spacial-pfeil.pfeil-gelb:after{
	border-left: 20px solid var(--wp--preset--color--secondary);
}

@media screen and (max-width: 781px){
	
	.wp-block-columns.special-spalten .spacial-pfeil:after{
		display: none;
	}
	
}

.wp-block-columns.special-spalten .special-spalte{
	display: table;
}

.wp-block-columns.special-spalten .special-spalte > ul{
	display: table-cell;
	vertical-align: middle;
}

@media screen and (min-width: 782px){
	
	.wp-block-columns.special-spalten.is-layout-flex{
		gap: 60px;
	}
			
}

.wp-block-list{
	padding-left: 20px;
}

.kontaktkasten .is-layout-flow > * {
	margin-block-start: 0;
}

.kontaktkasten .wp-block-column{
	position: relative;
}

.kontaktkasten .wp-block-column .kkasten-taste-phone{
	position: absolute;
	top: -100px;
	left: 50%;
	-webkit-transform: translateX(-50%) rotate(-7deg);
	-moz-transform: translateX(-50%) rotate(-7deg);
	-ms-transform: translateX(-50%) rotate(-7deg);
	-o-transform: translateX(-50%) rotate(-7deg);
	transform: translateX(-50%) rotate(-7deg);
}

.kontaktkasten .wp-block-column .kkasten-taste-email{
	position: absolute;
	top: -80px;
	left: 50%;
	-webkit-transform: translateX(-50%) rotate(5deg);
	-moz-transform: translateX(-50%) rotate(5deg);
	-ms-transform: translateX(-50%) rotate(5deg);
	-o-transform: translateX(-50%) rotate(5deg);
	transform: translateX(-50%) rotate(5deg);
}

.kontaktkasten .wp-block-column a,
.site-footer a{
	text-decoration: none;
}

.site-footer a:hover{
	text-decoration: underline;
}

a.backtotop{
	position: fixed;
	right: 30px;
	bottom: 40px;
	display: block;
	opacity: 0;
	width: 40px;
	height: 40px;
	background: url('images/up-arrow.svg') center center no-repeat var(--wp--preset--color--primary);
	background-size: 15px 15px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-moz-transition: opacity 300ms ease-out 0s;
	-webkit-transition: opacity 300ms ease-out 0s;
	-o-transition: opacity 300ms ease-out 0s;
	transition: opacity 300ms ease-out 0s;
}

a.backtotop span{
	display: inline-block;
	text-indent: -999rem;
	color: #fff;
}

/* media queries */

@media screen and (max-width: 781px){
	
	.kontaktkasten .wp-block-column .kkasten-taste-email{
		top: 30px;
	}
	
	.kontaktkasten .wp-block-column:last-child{
		padding-top: 140px;
	}
	
	a.backtotop{
		right: 10px;
		bottom: 10px;
		width: 30px;
		height: 30px;
	}
		
}

@media screen and (max-width: 599px){
	
	header.site-header .wp-block-group{
		height: 80px;
		margin-bottom: 32px;
	}
	
	header.site-header .wp-block-group .wp-block-image{
		bottom: -24px;
	}
	
	header.site-header .wp-block-group .wp-block-image img{
		width: 160px;
		max-width: 160px;
	}
/*	
	a.backtotop{
		display: none;
	}
*/		
}

