/*
Theme Name: Sculptor-2026-1
Theme URI: 
Author: Fabian Ewert
Author URI: 
Description: Fabian Ewerts Bildhauer Theme
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sculptor-2026-1
Tags: 
*/


/* größere Schrift auf der mobilen Seite */
@media (max-width: 767px) {
    :root {
        --wp--preset--font-size--medium: 1.2rem !important;
    }

	.logo{
		padding-left: 1rem!important;
}
}

/* Linie rechts neben dem ersten Element (und jedem weiteren außer dem letzten) */
.wp-block-polylang-language-switcher li:not(:last-child) {
    border-right: 1px solid currentColor; /* Übernimmt automatisch deine Textfarbe */
	padding-right: 1px;
    margin-right: 1px;
    line-height: 1; /* Sorgt dafür, dass der Strich nicht zu hoch wird */
}
.wp-block-polylang-language-switcher a {
    text-decoration: none;
}

/* Aktive Sprache: Orientierung geben */
.wp-block-polylang-language-switcher .current-lang a {
    font-weight: 700;
    cursor: default;
}

/* Nicht aktive Sprache: Als Link erkennbar machen */
.wp-block-polylang-language-switcher li:not(.current-lang) a {
    font-weight: 400;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

/* Beim Drüberfahren voll sichtbar und unterstrichen */
.wp-block-polylang-language-switcher li:not(.current-lang) a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
	color:#222;
}
	
/* Menüswitcher*/
/* Auf englischen Seiten das deutsche Menü ausblenden */
html[lang="en-US"] .nur-deutsch,
html[lang="en-GB"] .nur-deutsch {
    display: none !important;
}

/* Auf deutschen Seiten das englische Menü ausblenden */
html[lang="de-DE"] .nur-englisch {
    display: none !important;
}



/*####################################*/

/* Hamburger-MENU  */  

.header-hamburger-wrapper {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 16px 24px;
}

.hamburger {
	position: absolute;
	top: -52px;
	right: 0px;
	z-index: 1100;	/* Sehr hoch, damit immer anklickbar */
	width: 34px;
	height: 34px;
	background: var(--wp--preset--color--pale-pink);
	border: none;
	cursor: pointer;
}

.hamburger span {
	display: block;
	position: absolute;
	left: 2px; /* Zentriert die 35px Balken */
	width: 28px;
	height: 3px!important;
	background: var(--wp--preset--color--luminous-vivid-amber);
	/*background: #333;*/
	border-radius: 1px;
	transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}

/* Feste Positionen im Ruhezustand  */
.hamburger span:nth-child(1) { top: 4px; }
.hamburger span:nth-child(2) { top: 14px; }
.hamburger span:nth-child(3) { top: 24px; }

/* Hamburger zu X animieren */
.hamburger.active span:nth-child(1) {
	transform: rotate(45deg);
	top: 16px; /* Trifft sich exakt in der Mitte */
}
.hamburger.active span:nth-child(2) {
	opacity: 0;
}
.hamburger.active span:nth-child(3) {
	transform: rotate(-45deg);
	top: 16px; /* Trifft sich exakt in der Mitte */
}






/* Menü-Container */

nav.top-menu {
	position: relative;  /* position absolute, wenn du willst, dass der Inhalt überlagert wird */
	z-index: 1000;
	overflow: hidden;
	max-height: 0;	/* tatsächlich wichtig */
	opacity: 1!important;
	visibility: hidden;
	margin: 0;
	top: 15px;
	right:0px;
	width: 100%;
	background-color: none; /*wird im editor festgelegt*/
	border-left: 3px solid var(--wp--preset--color--luminous-vivid-amber);
	/*kein Padding, sonst wird's kacke*/
	
	}


nav.top-menu ul {
	list-style: none;
	margin: 0 0 0 0;
	padding: 0 0 20px 20px;
	
	}
nav.top-menu li {
	display: block;
	width: 90%;
	border-bottom: 1px solid var(--wp--preset--color--luminous-vivid-amber);;
}
nav.top-menu li:last-child { /* platz für die E-Mail-Fahne */
	width: calc(90% - 35px);
	
}
nav.top-menu li a, nav.top-menu li a:visited {
	display: block;
/*	color: #333!important;   wird im editor festgelegt*/
	text-decoration: none;
	padding: 8px 16px;
}
nav.top-menu li a:hover {
	color: var(--wp--preset--color--luminous-vivid-amber); !important;
}


.email-icon {
	position: relative;
	padding-left: 35px !important;
}

.email-icon::before {
	content: "";
	position: absolute;
	top: 15px;
	left: 18px;
	width: 20px;
	height: 12px;
	
	background-size: 20px 12px;
	background-repeat: no-repeat;
	opacity: 0.9;
	pointer-events: none;
	z-index: 0;
	-webkit-mask: url('assets/img/email-icon.svg') no-repeat center / contain;
    mask: url('assets/img/email-icon.svg') no-repeat center / contain;
	background-color: var(--wp--preset--color--luminous-vivid-amber);
}




@media (max-width: 765px) {
nav.top-menu {
	margin-left:35px!important;
	width: 85%;
	}
}



/*wichtig, damit die Gallery nicht in ein zweispaltiges Layout driftet*/
@media (max-width: 600px) {

    .wp-block-gallery.mobil-3-spalten .wp-block-image {
      /*  width: calc(33.33% - 4px) !important; */
		width: 33.33% !important;
        flex-grow: 1 !important; /* damit die Zeile voll ausgenutzt wird, wenn zB nur 2 statt 3 Bilder in einer Zeile sind*/
    }
}



/*back to top button*/

#scrollDiv {
	width: 40px;
	height: 40px;
	display: none;
	position: fixed;
	bottom: 40px;
	right: 40px;
	cursor: pointer;
	border-radius: 50%;
	border: 1px solid #966b15;
	box-shadow: 0 0 10 #ccc;
	background-color: #fff;
	
}
	

/*remove caption from images -> I only want the caption to be displayed in the lightbox*/

.wp-element-caption {
	display: none!important;
}
/*das Bild soll nicht verschwommen sein, wenn eine Caption hinterlegt ist*/
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption):before {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    content: none !important;
    height: 0 !important;
}


/* Lightbox */
/* Lightbox */

#custom-lightbox {
	display: none;
	position: fixed;
	z-index: 999991;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	text-align: center;
}

.lightbox-container {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 10px 12px;
	z-index: 999992;
	text-align: center;
	width: 90%;
	max-width: 70vh;
	height: auto;
	max-height: 94vh;
	overflow: visible; /* Wichtig, damit der Text fließen kann */
}

/* Wrapper legt sich exakt um die tatsächliche Bildgröße */
.lightbox-image-wrapper {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0; /* Verhindert einen unsichtbaren Spalt unter dem Bild */
}

.lightbox-image {
	max-width: 100%;
	/* 130px Platzhalter für deine 3 Zeilen Text auf dem Desktop */
	max-height: calc(94vh - 130px); 
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
	z-index: 999993;
	border-radius: 0 !important;
}

.close-lightbox,
.prev-image,
.next-image {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: #FDFCF9;
	font-size: 30px;
	color: #333;
	border: none;
	box-shadow: 0 0 0px #000;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1 !important;
	box-sizing: border-box;
	font-family: Arial, sans-serif !important; /* Einheitliche Zeichenhöhe auf iOS, Android & Desktop */
	position: absolute;
}

.close-lightbox {
	top: 10px;
	right: 10px;
	padding: 0 !important;
	z-index: 999994;
}

.prev-image {
	top: 50%;
	left: 8px;
	transform: translateY(-50%);
	padding: 0 0 4px 0 !important; /* Hebt das Zeichen optisch exakt in die Mitte */
	z-index: 999995;
}

.next-image {
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	padding: 0 0 4px 0 !important; /* Hebt das Zeichen optisch exakt in die Mitte */
	z-index: 999995 !important;
}

.prev-image:hover, .next-image:hover, .close-lightbox:hover  {
	color: #666;
}

.prev-image:active, .prev-image:focus, .next-image:active, .next-image:focus {
	color: #333;
}

.lightbox-caption {
	display: block;
	color: #fff;
	font-size: 12px;
	font-weight: normal !important;
	line-height: 1.2 !important; 
	text-align: center;
	margin-top: 10px; /* Rückt den gesamten Textblock näher an das Bild */
	padding: 0 10px;
	z-index: 999996;
}

.lightbox-caption h4 {
	display: block; /* Verhindert einen harten Zeilenumbruch vor dem Trennstrich */
	font-size: 15px;
	font-weight: bold;
	color: #ffffff !important;
	margin: 0 0 5px 0 !important;
	padding: 0 !important;
}

.caption-trennlinie {
	display: inline-block;
	/* Reduzierte Abstände über und unter der weißen Trennlinie */
	padding: 0px 25px 12px 25px;
	margin-bottom: 6px;
	/* Die hauchdünne Linie bleibt perfekt erhalten */
	border-bottom: 1px solid rgba(255, 255, 255, 0.4); 
	min-width: 160px; 
}

.cleared {
	clear: both;
}



	