/*
 Theme Name:   pixelhof Theme
 Theme URI:    https://pixelhof.de/
 Description:  GP Childtheme von Stefanie Fuchs
 Author:       Stefanie Fuchs
 Author URI:   https://pixelhof.de/
 Template:     generatepress
 Version:      0.1
*/


/* Man sollte nicht mehr die smooth-scroll Klasse aus dem Customizer nutzen, sondern dieses CSS: 
   Aber Achtung: wenn man das setzt, gibt es einen Konflikt mit dem Back-To-Top Button. Dieser wird
   dann extreem langsam! Daher muss in der functions.php ein kleines Snippet zugefügt werden, welches
   die smooth-scroll Funktion für diesen Button außer Kraft setzt */
html, body {
	scroll-behavior: smooth;
}

/* turns off grey box around the mobile menu icon */
.mobile-menu-control-wrapper .menu-toggle, .mobile-menu-control-wrapper .menu-toggle:hover {
	background-color: transparent;
}

/* im Blogbeitrag wird den Headlines, die auf p, ul oder ol folgen, ein Oben-Abstand von 3rem verpasst */
.single-post :is(p,ul,ol)+:is(h2,h3,h4) {
    margin-top: 3rem;
}

/* remove bottom margin on last paragraph or list in container */
[class^="gb-element-"] p:last-child:last-of-type, 
[class^="gb-element-"] ul:last-child:last-of-type {
  margin-bottom: 0px;
}

/* GB button line height override */
a.gb-text {
	line-height: 1.5em;
}

/* page and post hyperlinks Variante A */
/*.content-area :is(p,li) a {
  font-weight: 500;
  color: var(--accent);
  border: var(--accent);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  padding-bottom: 0px;
}
.content-area :is(p,li) a:hover {
  color: var(--accent-2);
  border: var(--accent-2);
  border-bottom-style: solid;
  border-bottom-width: 1px;
}*/

/* page and post hyperlinks Variante Mike */
.content-area :is(p,li) a {
  color: var(--contrast);
  font-weight: 400;
  padding-bottom: 1px;
  box-shadow: inset 0 -0.1em 0 0 var(--accent);
  transition: all 0.25s ease-in-out;
}
.content-area :is(p,li) a:hover {
  color: var(--contrast);
  box-shadow: inset 0 -0.2em 0 0 var(--accent);
}

/* sidebar categories list style */
.wp-block-categories {
  list-style: none;
  margin-left: unset;
}

/* drop sidebar below content on tablet */
@media (max-width: 1024px) {
  .site-content {
    flex-direction: column;
  }

  .site-content .content-area,
  .site-content .is-right-sidebar {
    width: 100%;
  }
}




/* WP Search block style, fuer das WP-eigene Suchformular auf 404 oder No-Result Seiten */
.wp-block-search__button.has-icon {
  background-color: var(--accent);
  border-radius: 2px;
  transition: all 0.5s ease 0s;
}

.wp-block-search__button.has-icon:hover {
  background-color: var(--accent-2);
}

.wp-block-search__button svg {
  min-height: 1.6em;
  min-width: 1.6em;
  vertical-align: text-bottom;
}

/* Footer Navigation block link hover color */
.wp-block-navigation li:hover {
  color: var(--accent-2);
}


/********************* FLUENT FORMS CSS ***************************/

/* label style */
.fluentform .frm-fluent-form .ff-el-input--label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--contrast-2);
}

/* fluent forms field style */
.fluentform .frm-fluent-form .ff-el-form-control {
    background-color: var(--base-3);
    color: var(--contrast-2);
    border: 3px solid var(--base-2);
    border-radius: 0px;
    font-size: 1rem;
	line-height: 1.5em;
	padding: .5rem 1.25rem;
}

/* fluent forms focus field style */
.fluentform .frm-fluent-form .ff-el-form-control:focus {
    border: 3px solid var(--base-2);
    outline: none;
}

/* fluent forms placeholder text style */
.fluentform .frm-fluent-form .ff-el-form-control::placeholder {
    color: var(--contrast-3);
    font-size: 1rem;
}

/* placeholder focus text style */
.fluentform .frm-fluent-form .ff-el-form-control:focus::placeholder {
    color: var(--base-3);
}

/* fluent forms button style */
.fluentform .frm-fluent-form .ff-btn-submit {
	background-color: var(--accent);
	border: 3px solid var(--accent);
	color: var(--base-3);
	column-gap: .5rem;
    font-size: 1rem;
	font-weight: 600;
	padding: .5rem 1.25rem;
	margin-bottom: -20px;
	transition: all 0.5s ease 0s;
}

/* fluent forms button hover style */
.fluentform .frm-fluent-form .ff-btn-submit:hover {
	color: var(--accent);
	border: 3px solid var(--accent);
	background-color: rgba(255,255,255,0);
}

/* email form mobile full width button */
@media (max-width: 768px) {
	form.fluent_form_12 .ff-btn-submit {
    width: 100%;
  }
}

/* form error text style */
.fluentform .ff-el-is-error .text-danger {
    font-size: 1rem !important;
}

/* success message style */
.fluentform .ff-message-success {
    position: relative;
    border: none;
    box-shadow: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
    padding: 0px;
    margin-top: 10px;
}

/********************* ENDE FLUENT FORMS CSS ***************************/



/* Mobile Menu: Wenn es eine Subnavigation gibt, werden diese Sub-Einträge mit einer weichen transition ausgefahren */
#generate-slideout-menu.main-navigation ul ul {
  display: inline-block !important;
  opacity: 0; 
  visibility: hidden; 
  transition: opacity 0.3s ease, visibility 0.3s ease; 
}
#generate-slideout-menu.main-navigation ul ul.toggled-on {
  opacity: 1; 
  visibility: visible; 
}
@keyframes slideDown {
  from {
      max-height: 0;
      opacity: 0;
  }
  to {
      max-height: 500px; 
      opacity: 1;
  }
}
@keyframes slideUp {
  from {
      max-height: 500px; 
      opacity: 1;
  }
  to {
      max-height: 0;
      opacity: 0;
  }
}
.slideout-menu .sub-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
.slideout-menu .sub-menu.toggled-on {
  animation: slideDown 0.5s ease-in-out forwards;
}
.slideout-menu .sub-menu {
  animation: slideUp 0.5s ease-in-out forwards;
}