/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  a GeneratePress child theme
 Author:       Maximilian Kroth (tMaex.com)
 Author URI:   https://tmaex.com/dev/gp-child
 Template:     generatepress
 Version:      0.0.3-custom
*/

@font-face {
  font-display: swap;
  font-family: 'Arno';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/Arno-Pro-Regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Arno';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/Arno-Pro-Semibold.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'NeueGalano';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/NeueGalano-Regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'NeueGalano';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/NeueGalano-RegularItalic.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'NeueGalano';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/NeueGalano-SemiBold.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'NeueGalano';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/NeueGalano-SemiBoldItalic.woff2') format('woff2');
}

/* ***** ONLY DEV ***** */
.otgs-development-site-front-end {
    display: none;
}

/* ***** CUSTOM ***** */

/* MK keine Scrolleiste unten */
body {
    overflow-x: hidden;
}

/* MK Hauptmenü / Abstand Menüpunkt zu Pfeil*/
.menu-item-has-children .dropdown-menu-toggle {
	padding-left: 2px;
}

/* Menü Schatten entfernen */
.has-sticky-branding.main-navigation.sub-menu-right.stuckElement.is_stuck.navigation-stick.navigation-clone.sticky-navigation-transition {
    box-shadow: none;
}
.main-navigation .sub-menu {
    box-shadow: none;
    border: none;
}

/* SW Menü Hintergrund Gradient */
.has-sticky-branding.main-navigation.sub-menu-right.stuckElement.is_stuck.navigation-stick.navigation-clone.sticky-navigation-transition {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%) !important;
	padding-top: 10px;
	padding-bottom: 25px;
}

/* SW Innenabstand oben und unten für Sticky Header */
.auto-hide-sticky.has-sticky-branding.main-navigation.nav-align-center.sub-menu-right.stuckElement {
    padding-top: 10px;
    padding-bottom: 10px;
}

html[lang="en-US"] :where(.gb-submenu-toggle) {
	width: 15px;
}

/* SW Bildtitel bei Hover entfernen */
img[title] {
    pointer-events: none;
}


/* SW Listendarstellung stylen */
.wp-block-list {
  margin-left: 20px;
}

/* MK Sprachschalter */
div.wpml-ls-statics-footer.wpml-ls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
	margin: 0;
}

div.wpml-ls-statics-footer.wpml-ls li {
	padding: 5px;
    background-color: var(--global-color-8);
}
div.wpml-ls-statics-footer.wpml-ls li a {
    color: var(--global-color-9);
	font-weight: bold;
}

/* SW Button Kontaktformular stylen */
#nf-field-4 {
	background-color: #A7A33B !important;
	color: #fff;
}


/* SW Container Startseite einrücken */
.no-sidebar .entry-content .gb-container-dd013930.alignfull,
.no-sidebar .entry-content .gb-container-353937a1.alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2 + 10vw) !important;
    margin-right: calc(-100vw / 2 + 100% / 2) !important;
    max-width: calc(100vw - 5vw) !important;
}
@media (max-width: 768px) {
    .no-sidebar .entry-content .gb-container-dd013930.alignfull,
    .no-sidebar .entry-content .gb-container-353937a1.alignfull {
        margin-left: calc(-100vw / 2 + 100% / 2 + 7vw) !important;
        margin-right: calc(-100vw / 2 + 100% / 2) !important;
        max-width: calc(100vw - 5vw) !important;
    }
}

/* SW H1 Formatierung mit responsiver Unterlegung */
h1 {
	display: inline;
	box-decoration-break: clone;
	
	background-color: #473C46;
	color: #ffffff;
	line-height: 1.4em;
	padding-bottom: 20px;
	padding-top: 35px;
	padding-left: 60px;
	padding-right: 60px;
	position: relative;
	z-index: 1;
}

/* Mobil allgemein */
@media (max-width: 768px) {
	h1 {
		padding-left: 25px;
		padding-right: 25px;
		padding-top: 32px !important;
		margin-left: 10px;
		line-height: 3.3em !important;
	}
}
/* SW H1 Variante 02 z.B. Buchseiten */
h1.h1-02 {
	display: inline-block;
	background-color: #ffffff;
	color: #473c46;
	margin-left: 0px;
	margin-bottom: 0px !important;
	line-height: 1.5em !important;
	padding-bottom: 10px;
	padding-left: 0px;
	padding-right: 0px;
	position: relative;
	z-index: 1;
}




/* SW IMAGE SOURCE CONTROL - ANPASSUNGEN */
.isc_all_image_list_box th:nth-child(2), 
.isc_all_image_list_box td:nth-child(2),
.isc_all_image_list_box th:nth-child(3), 
.isc_all_image_list_box td:nth-child(3) {
    display: none !important;
}

div.isc_all_image_list_box td:nth-child(4) ul {
    margin-left: 25px !important;
    padding-left: 0 !important;
}

div.isc_all_image_list_box table tbody tr td:nth-child(5):empty,
div.isc_all_image_list_box table tbody tr td:nth-child(5):-moz-only-whitespace {
    display: none !important;
}

@media (min-width: 769px) {
    div.isc_all_image_list_box table thead {
        display: none !important;
    }
    div.isc_all_image_list_box table tbody {
        display: block !important;
        width: 100% !important;
    }

    div.isc_all_image_list_box table tbody {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 20px 40px !important;
    }

    div.isc_all_image_list_box table tbody tr {
        display: block !important;
        border: 1px solid #eeeeee !important;
        border-radius: 6px !important;
        padding: 15px !important;
        background-color: #ffffff !important;
    }

    div.isc_all_image_list_box table tbody tr td {
        display: block !important;
        padding: 5px 0 !important;
        border: none !important;
    }
	
	div.isc_all_image_list_box table td {
		text-align: left;
		font-size: 16px;
		line-height: 1.2em;
	}
}

/* Darstellung Overly Panel anpassen */
.gb-navigation,
.gb-menu-container {
    position: relative !important;
}

.gb-navigation li,
.gb-navigation .menu-item,
.gb-navigation .gb-menu-base > li {
    position: static !important;
}
.gb-navigation .gb-overlay.gb-overlay--positioned {
    position: absolute !important;
    
    left: 20px !important; 
    right: 20px !important;
    
    width: auto !important; 
    min-width: 0 !important;
    max-width: 100% !important;
    transform: none !important; 
    top: 100% !important;
    margin-top: 15px !important; 
}
.gb-navigation .gb-overlay__content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Bild Menü Einstellung */
img.mega-menu-cover-image {
    object-fit: cover !important;
}

/* Custom Header + Gradient-Hintergrund */
header.custom-header,
div.custom-header,
.custom-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%) !important;
    /*pointer-events: none;*/
}

/* Klicks auf Inhalte erlauben */
.custom-header * {
    /*pointer-events: auto;*/
}

/* Platzhalter für Admin-Bar */
.admin-bar header.custom-header,
.admin-bar div.custom-header,
.admin-bar .custom-header {
    top: 32px !important;
}

@media (max-width: 768px) {
    .admin-bar header.custom-header,
    .admin-bar div.custom-header,
    .admin-bar .custom-header {
        top: 46px !important;
    }
}



/* SW Menü Leiste Startseite */
@media (min-width: 769px) {
    /* Logo entfernen Startseite desktop und tablet */
    body.home .gb-media-9d3f3d63 {
        display: none !important;
    }

    /* Zentrieren, wenn Logo ausgeblendet */
    body.home .site-header .gb-navigation {
        justify-content: center !important;
        width: 100% !important;
    }

    body.home .site-header .gb-menu-container-54739212,
    body.home .site-header [class*="gb-menu-container"] {
        margin-left: auto !important;
        margin-right: auto !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
}


@media (min-width: 769px) {
    body.home .logo-menu {
        display: none !important;
    }
}

/* KG Visuel Portfolio: Bildbeschreibung ausblenden */
.vp-portfolio__item-meta {
    display: none !important;
}