/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/** weisse Striche zwischen den Menu Punkten. Dirk
https://generatepress.com/forums/topic/help-add-vertical-line-between-primary-navigation-menu-items/
**/
.main-navigation .main-nav > ul > li:not(:first-child) {
    border-left: 2px solid white;
}

/** After MEC installation, show footer in empty pages like /events/ at bottom. Dirk
https://generatepress.com/forums/topic/generatepress-footer-issue-on-short-pages/
Dirk während Migration Website
**/
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.container.grid-container {
    width: 100%;
}
.site-footer {
    margin-top: auto;
}

/*.home .site-logo {
    display: none;
}*/
#mobile-header span.menu-bar-item.search-item {
    display: none;
}

/*Setting all links in text bold. Dirk. 20230911*/
#content a {
    font-weight: bold !important;
}

/* Set links in text and headings (h1 to h6) to bold. Dirk. 20230902. Deckt nicht alles ab
#content p a,
#content h1 a,
#content h2 a,
#content h3 a,
#content h4 a,
#content h5 a,
#content h6 a {
    font-weight: bold !important;
}*/

/* Site-Logo rechts neben Lupe und Grösse 50px*/
/* @media (max-width: 1200px)
 * {
.site-logo {
    position: absolute;
    right: 5px;
    top: -55px;
    width: 50px;
    height: auto;
	}
*/

/* Such-Lupe ganz rechts. Dirk*/
/* @media (max-width: 1600px) {*/
.menu-bar-items .search-item
 {
    position: relative;
    right: 10px;
    height: auto;
	}

/* https://generatepress.com/forums/topic/2px-black-separator-lines-between-menu-items-and-sub-menu-items/ 
.main-navigation .menu > li > a {
border-right: 2px solid #A0A0A0;
}*/

/*
@media (max-width: 2200px) {
.site-logo {
    position: absolute;
    left: 10px;
/*    top: 15px;
    top: calc(2vw*1);
    width: 50px;
    height: auto;
	}
}
*/

/*
@media (max-width: 2200px) {
.site-logo {
    position: absolute;
    left: 10px;
/*    top: 15px;
    top: calc(2vw*1);
    width: 50px;
    height: auto;
	}
}
*/

/*
@media (max-width: 1600px) {
.mobile-menu
 {
    position: relative;
    left: 100px;
    height: auto;
	}
}
*/

/*@media (max-width: 1600px) {
 .menu-bar-items {
    order: -1;
    margin-right: auto;
    margin-left: 0 !important;
}
}
*/

/* Font-size dynamisch für Desktops, GP Block Hooks, Startseite Blogheader Desktop DE,FR. Dirk. 20230908 */
.startseite-titel.gb-headline-text {     
  font-size: calc(4px + 1vw) 
}
.startseite-untertitel.gb-headline-text {     
  font-size: calc(2px + 1vw)
}

/* Bilder anpassen, momentan Gartenfreund und Mondkalender auf Startseite DE/FR. Dirk. 20230909 */
.bild-gartenfreund {
  max-width: 80%; /* Maximale Breite auf 80% des Bildschirms setzen */
  max-height: 60vh; /* Maximale Höhe auf 60% der Bildschirmhöhe setzen */
  width: auto;
  height: auto;
  margin: 0 auto; /* Horizontal zentrieren */
  display: block;
}

/* Adjust the Polylang language flags from 16x11px. Dirk. 20230911 */
.lang-item.lang-item-first.menu-item a img {
   width: 28px !important; /* Adjust the width as needed for the German flag */
   height: 19px !important; /* Adjust the height as needed for the German flag */
   vertical-align: middle !important;
}

/* Unter Design > Customizer > Farben ist die Farbe "region-bg" definiert.
 * Diese kann hier überschrieben werden und als CSS class auf der Seite "Sektionsnachricht" benutzt werden
 * einzutragen im post unter der query loop (die "Kachel") *
 * dabei ist der hintere Wert der Klasse der jeweilige slug der Kategorie region-verein.
 * Dirk 24.9.2023
 * https://generate.support/topic/unique-background-color-for-post-template-in-query-loop-based-on-custom-category/#post-47835
 * die Farben sind abgegelichen mit Gartenfreund Print Sektionsnachrichten */

.region-verein-basel-stadt {
    --region-bg: #4fb7c4;
}

.region-verein-basel-land {
    --region-bg: #91b4d8;
}

.region-verein-bern-stadt {
    --region-bg: #a56ba3;
}

.region-verein-bern-land {
    --region-bg: #d84970;
}

.region-verein-biel-seeland {
    --region-bg: #e64c3a;
}

.region-verein-ostschweiz-land {
    --region-bg: #dc7530;
}

.region-verein-ostschweiz-stadt {
    --region-bg: #dc7530;
}

.region-verein-zuerich-ost {
    --region-bg: #446630;
}

.region-verein-zuerich-stadt {
    --region-bg: #5d3621;
}

.region-verein-zuerich-west {
    --region-bg: #745a1e;
}

.region-verein-zentralschweiz {
    --region-bg: #a56147
}

.region-verein-bienne {
    --region-bg: #e64c3a
}

.region-verein-aigle {
    --region-bg: #5a777b
}

.region-verein-morges {
    --region-bg: #567b9d
}

.region-verein-geneve {
    --region-bg: #8ea486
}

.region-verein-lausanne-vaud {
    --region-bg: #d9c420
}

.region-verein-fribourg {
    --region-bg: #33495d
}

#register-giAdminRegister.giAboAdminFrame {
    height: 700px;
}
/*
 * Wer hat das giAbo eingetragen und warum? Bitte alle Änderungen zukünftig vermerken. Danke. Dirk. 20230909
 * Nach Änderungen am CSS alle Caches löschen, Zeile oben, Autoptimze und WP Rocket 
 */

 #pwreset iframe {
    min-height: 600px !important;
 }
/*
 * Wer hat das iframe eingetragen und warum? Bitte alle Änderungen zukünftig vermerken. Danke. Dirk. 20231018
 */
