/*
* Theme Name: Esther Pfirter Gallery Theme
* Description: Esther Pfirter Gallery Wordpress Template
* Author: Tina Widmer, wit media&design
* Version: 1.0
*/

/* Fonts */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

@font-face {
	font-family: 'Formale Grotesque';
	src: url('formale_grotesque_webfonts/WOFF2/FormaleGrotesque-L2.woff2') format('woff2'),
		url('formale_grotesque_webfonts/WOFF/FormaleGrotesque-L2.woff') format('woff');
	font-weight: 200;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Formale Grotesque';
	src: url('formale_grotesque_webfonts/WOFF2/FormaleGrotesque-L3.woff2') format('woff2'),
		url('formale_grotesque_webfonts/WOFF/FormaleGrotesque-L3.woff') format('woff');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

/*CSS reset*/
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Haupt-Container */
#container {
	max-width: 1920px;
	margin:auto;
	text-align:left;
	aspect-ratio:auto;
	padding: 1rem 2rem 1rem 2rem;
}

/*allgemeine HTML-Elemente*/

body {

	display:flex;
}

*, body, p, h1, h2, h3, h4, h5, h6 {
    font-family: "Formale Grotesque", "Lato", sans-serif !important;
    font-weight: 300 !important;
	
		
	/* Für Safari und Firefox auf macOS */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	/* Für Chrome und Edge */
	text-rendering: optimizeLegibility;

}

html, body {
	scroll-behavior: smooth;
}

img {
	width:100%;
}

a {
	color: black;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* ============= Typografie =============== */

/* Schriften */

h1 {
	font-size:2rem;
	font-weight: 300;
	padding-top:2rem;
	padding-bottom:2.5rem;
}

h2 {
	font-size:1.5rem;
	font-weight: 300;
	padding-top:1.5rem;
	padding-bottom:0.75rem;
}

h3 {
	font-size:1.25rem;
	font-weight: 300;
	padding-top:1.5rem;
	padding-bottom:0.5rem;
}

p {
	line-height:1.5rem;
}

/* ============= Header =============== */

header {
	display: flex;
	flex-direction: row;
	justify-content:space-between;
	align-content: flex-end;
	align-items: center;
	padding-bottom: 1rem;
}

.logo {
	display: flex;
	flex-direction: row;
	justify-content:space-between;
	align-items:center;
	margin: 1rem 0rem;
	gap: 1rem;
}

.logo img {
	height: 2.5rem;
	display: block;
	width: auto !important;
}

.logo p {
	font-size: 1.5rem;
	line-height: 1.5rem;
	margin: 0;
}

.logo a:hover {
	text-decoration: none;
}

nav ul {
	list-style-type:none;
	display:flex;
	flex-direction:row;
	flex-wrap:wrap;
	gap: 1rem;
}

nav a {
	color: black;
	text-decoration:none;
}

nav a:hover {
	text-decoration:underline;
}

#hamburger {
	display:none;
	align-self:center;
	justify-self:center;
	height: 2rem;
}

#symbol {
	height:2rem;
	z-index:43;
}

.nav_open {
	left:0rem;
	display:flex !important;
}

/* ============= Footer =============== */

footer {
	
}

footer hr {
	margin: 1rem 0;
	color: rgba(89,89,89,1.00);
}

footer a {
	text-decoration: none;
	color: black;
}

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

#footer_container {
	display: flex;
	flex-direction: row;
	flex-wrap:wrap;
	justify-content: space-between;
}

.footer_links {
	justify-content: flex-start;
	margin-bottom: 1rem;
}

.footer_rechts {
	justify-content: flex-end;
	text-align: right;
	margin-bottom: 1rem;
}

.footer_unten {
	
}

.call-to-action {
	font-size: 1.5rem;
	line-height: 2rem;
	margin: 0;
}

/* ============= Main =============== */

.text_rechts {
	text-align:right;
	justify-content: flex-end;
	padding: 4rem 0 4rem 50%;
}

.opening_hours {
	text-align:right;
	justify-content: flex-end;
	padding-bottom: 3rem;
}

.wp-block-button__link {
	text-decoration:none;
	background: linear-gradient(to right, #e0e0e0, #ffffff);
	color: black;
	font-family: "Formale Grotesque", sans-serif;
	font-weight:300;
	text-align:left;
	margin: 0 auto;
	width: 20rem;
}

.wp-block-paragraph {
	padding-bottom: 2rem;
}

.lauftext_schmal {
	max-width: 70ch;
}

/* ============= Galerie =============== */

.galeriebox_main {
	padding-bottom: 3rem;
}

.galeriebox_main img {
	width: 100%;
}

.galerie_spalten {
	padding-bottom: 3rem;
}

.legi_rechts {
	align-self: flex-start !important;
}

.legi_rechts h2 {
	padding-top: 0;
}

/* ============= Fancybox integrieren =============== */

/* Die Bildunterschrift auf der normalen Website verstecken */
figure.wp-block-image figcaption {
    display: none !important;
}

/* Beschriftung innerhalb der Fancybox */
.fancybox__caption {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    
    width: 60% !important;
    margin: 1.5rem auto 0 auto !important;
    padding: 0 !important;
    
    font-family: "Formale Grotesque", sans-serif;
    color: #000000 !important;
}

.fancybox__caption .lb-links {
    text-align: left;
	align-self: flex-start;
    max-width: 70%;
}

.lb-links h2 {
	padding-top:0;
}

.fancybox__caption .lb-rechts {
    text-align: right;
    max-width: 30%;
	align-self: flex-start;
}

/* Hintergrund und Standard-Farbe */
.fancybox__container {
    --fancybox-bg: rgba(255, 255, 255, 0.98) !important; /* Weißer Hintergrund */
    --fancybox-color: #000000 !important;              /* Schwarze Schrift */
    
    backdrop-filter: blur(10px); 
}

.fancybox__backdrop {
    background: rgba(255, 255, 255, 0.98) !important;
}

.fancybox__slide {
    background: transparent !important;
}

.fancybox__nav, 
.f-button, 
.fancybox__toolbar,
.fancybox__counter {
    color: #000000 !important;
    --f-button-color: #000000 !important;
    --f-button-hover-color: #000000 !important;
    --f-button-bg: transparent !important;
    --f-button-hover-bg: rgba(0, 0, 0, 0.05) !important;
}

.f-button.is-next, 
.f-button.is-prev {
    color: #000000 !important;
}

.fancybox__caption {
    color: #000000 !important;
}


/* Slide-Container */
.fancybox__slide {
    overflow-y: auto !important;   /* Aktiviert den vertikalen Scrollbalken, wenn nötig */
    display: block !important;     /* Bricht das starre Flex-Korsett auf */
    text-align: center !important; /* Zentriert den Inhalt horizontal */
    padding: 4rem 2rem !important; /* Gibt oben und unten edlen Galerie-Abstand */
}

/* 2. Den Container flexibel halten, damit er sich dem Bild anpasst */
.fancybox__content {
    display: inline-block !important;
    margin: 0 auto !important;
    max-width: 60% !important;
    height: auto !important; 
}

/* 3. Die Bildunterschrift bricht nun ganz natürlich darunter um */
.fancybox__caption {
    position: relative !important; /* Löst den Text vom unteren Bildschirmrand */
    inset: auto !important;
    margin: 2rem auto 0 auto !important; /* Schiebt den Text dezent unter das Bild */
    
    /* Nutzt die maximale Breite, die du oben definiert hast */
    width: 60% !important;
}

/* ============= Kontaktformular =============== */

input, select, textarea {
	border:none;
	background: linear-gradient(to right, #e0e0e0, #ffffff);
	padding:0.5rem;
	font-size:1rem;
	font-family: "Formale Grotesque", sans-serif;
	font-weight:300;
	margin-top:0.5rem;
	width:100%;
}

textarea {
	height:10rem;
	margin-bottom:0.5rem;
}

input[type=submit]{
	text-decoration:none;
	background: linear-gradient(to right, #e0e0e0, #ffffff);
	font-family: "Formale Grotesque", sans-serif;
	font-weight:300;
	text-align:left;
	margin: 0 auto;
	width: 20rem;
	padding: 0.75rem;
}

input[type=submit]:hover{
	text-decoration:underline;
}


/* ============= Bilder =============== */

.bild_verlauf {
    /* Holt die 2rem Padding des Containers links und rechts wieder ab */
    margin-left: -2rem !important;
    margin-right: -2rem !important;
    
    /* 100% Breite des Inhalts plus 4rem für das ausgeglichene Padding */
    max-width: calc(100% + 4rem) !important; 
    width: calc(100% + 4rem) !important;
}

.bild_verlauf img {
    aspect-ratio: 16 / 6 !important;
    height: auto !important;
    display: block !important;
    width: 100% !important; /* Füllt den oben vergrößerten Container komplett aus */
    
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}

.portrait_verlauf img {
	-webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

/* ============= Nützliche Klassen =============== */

.umbruch {
	display:none;
}

/* ======== Bildschirmbreite unter 780px ======== */

@media screen and (max-width:780px) {
	
	.text_rechts {
		text-align:left;
		justify-content: flex-start;
		padding: 4rem 0 4rem 0%;
	}
	
	header {
		display: flex;
		flex-direction: column;
		align-content: center;
		align-items: center;
		padding-bottom: 1rem;
	}

	.logo {
		display: flex;
		flex-direction: column;
		justify-content:space-between;
		align-items:center;
		text-align: center;
		margin: 1rem 0rem;
		gap: 1rem;
	}

	.logo img {
		height: 2.5rem;
		display: block;
	}

	.logo p {
		font-size: 1.5rem;
		line-height: 1.5rem;
		margin: 0;
	}
	
	.portrait_verlauf img {
	-webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}
	
		
	.opening_hours {
		text-align:center;
		justify-content: center;
		padding-bottom: 2rem;
	}
	
	.umbruch {
		display:inherit;
	}
	
	.hidden {
		display: none;
	}
	
	#footer_container {
		display: flex;
		flex-direction: column;
		flex-wrap:wrap;
		justify-content: space-between;
	}

	.footer_links {
		justify-content: center;
		text-align: center;
	}

	.footer_rechts {
		justify-content: center;
		text-align: center;
	}
	
	.footer_unten {
		justify-content: center;
		text-align: center;
	}

} /* Hier endet der Breakpoint für 780 px */




/* ======== Bildschirmbreite unter 500px ======== */

@media screen and (max-width:500px) {
	
	
	/* mobile Navigation mit Hamburger */
	
	#hauptmenu {
        display: none;
        flex-direction: column;
        position: fixed;
		font-size:1.2rem;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255,255,255,1.00);
		opacity:0.95;
        z-index: 9998;
        padding: 14rem 2rem 2rem 2rem;
        overflow-y: auto;
	}
	
	#hauptmenu.nav_open {
		display: flex !important;
	}

  	#hamburger {
        display: block !important;
        z-index: 9999;
    }
	
	#symbol {
		height: 3rem;
		z-index: 1001;
		display: block;
	}

	
	nav ul {
        flex-direction: column !important;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
    }
	
	.bild_verlauf {
		display:none;
	}
	
	.text_rechts {
		text-align:center;
		justify-content: center;
		padding: 2rem 0 2rem 0%;
	}

	
	h1 {
		text-align:center;
		justify-content: center;
	}
	
	
} /* Hier endet der Breakpoint für 500 px */



