/*
Theme Name: Twenty Twenty-Three Child
Theme URI: https://www.mr-box.at/
Author: Mario Göschl
Author URI: https://goeschl.cc
Template: twentytwentythree
*/

:root {
  	--wp--style--global--content-size: 90%;
}

html, body {
	overflow-x: hidden;
}

:where(.wp-site-blocks) > * {
    margin-block-start: 0;
    margin-block-end: 0;
}

/* Seitenüberschrift */

h2 {
    margin-block-start: 0 !important;
    margin-block-end: 5rem !important;
  	padding-bottom: 0.25rem;
}

h2.wp-block-heading {
    border-bottom: 0.15rem solid #bd9d6a;
    border-image: linear-gradient(to right, #bd9d6a, white) 1;
}

/* Spacer - Abstand zwischen Seiten */

	div.wp-block-spacer {
      	height: 6.5rem !important;
}

/* Seitenhöhe */

	div.wp-block-group {
      	min-height: 100vh;
}

/* Hintergrund FAQ */

	div.faq {
   		background: rgba(255, 255, 255, 0.9);
}

	div.faq::before {
      	position: absolute; 	
    	width: 100%;
    	min-height: 100vh;
    	z-index: -10;
    	left: 0;
    	top: 0;
    	content: '';
    	background-attachment: fixed;
    	background-image: url(https://www5.mr-box.at/wp-content/uploads/2024/11/IMG_0298.jpg);
      	background-position: center;
      	background-size: cover;
}

/* Logo */

	#logo {
		height: 35%;
		aspect-ratio: 1;
		position: absolute;
      	right: 3rem;
		z-index: 100;
		margin: 3rem 0 0 3rem;
      	border-radius: 50%;
      	background: rgba(255, 255, 255, 0.8);
      	box-shadow: 0 0 2rem rgba(255, 255, 255, 1);
      
}

	#logo img {
      	width: 115%;
      	height: auto;
      	margin: 0;
      	padding: 0;
      	position: absolute;
      	top: 50%;
  		left: 50%;
  		transform: translate(-50%, -50%);
}

summary::marker
 {
    content: url("https://www5.mr-box.at/wp-content/uploads/2025/07/icon.png");
}

/* Navigationsleiste */

	.wp-block-navigation__responsive-container, .wp-block-navigation__responsive-close, .wp-block-navigation__responsive-dialog, .wp-block-navigation__responsive-container-content, ul.wp-block-navigation__container {
    background: none !important;
    height: inherit !important;
}
	
	nav.wp-block-navigation {
		width: 100%;
      	height: 7rem;
      	overflow: hidden;
		z-index: 1000;
		position: fixed;
		top: 0;
		bottom: auto;
        background: rgba(255,255,255,0.65);
}

	.wp-block-navigation {
      	position: relative;
      	--navigation-layout-align: auto;
      	gap: 0 !important;
}

	.wp-block-navigation  a {
      	text-decoration: none !important;
      	text-align: center;
}

	.wp-block-navigation .wp-block-navigation-item {
      	display: block;
}

	.sticky_menu { /* wenn Javascript ein - sticky menu */
		position: absolute !important;
		bottom: 1.5rem !important;
		top: auto !important;
}

	.sticky { /* wenn Navigationsleiste oben dann position: fixed */
		width: 100% !important;
		position: fixed !important;
		top: 0 !important;
		bottom: auto !important;
		transition: height 0.5s; /* Navigationsleiste - Höhe langsam ändern */
		-moz-transition: height 0.5s;
		-webkit-transition: height 0.5s;
		-o-transition: height 0.5s;
}

	nav.sticky {
	    height: 5rem !important;
    	box-shadow: 0 0.1rem 1rem rgb(0 0 0 / 75%);
}

	.wp-block-navigation ul {
      	margin-left: 5rem;

}

	.wp-block-navigation ul.sticky {
      	width: calc(100% - 5rem) !important;
      	margin-left: 0 !important;
}

	.wp-block-navigation ul > li {
      	font-size: 1.5rem;
      	font-weight: 600;
      	line-height: 7rem;
      	width: calc((100% - 5rem) / 5); /* Breite der Menüelemente (94% / Anzahl der Elemente) */
}

	.wp-block-navigation ul > li:hover {
      	box-shadow: inset 0 0 1.5rem 0 rgba(0, 0, 0, 0.15);
}

	.wp-block-navigation ul > li a:hover {
		box-shadow: inset 0 -0.3rem 0 #bd9d6a;    
}

	.wp-block-navigation ul > li:first-child:hover {
    	box-shadow: none !important;    
}

	.wp-block-navigation ul > li:first-child a:hover {
    	box-shadow: none !important;    
}
		
	.wp-block-navigation ul.sticky > li {
      	line-height: 5rem !important;
}

	.wp-block-navigation ul > li:first-child { /* Seitenlogo ausblenden */
      	display: none;
}

	.wp-block-navigation ul.sticky > li:first-child { /* Seitenlogo einblenden */
      	display: block;
      	width: 5rem !important;
}

	.wp-block-navigation ul > li:first-child img {
      	width: 5rem;
      	height: auto;
}
