/*
 Theme Name:   GP-One Base-Site
 Theme URI:    https://generatepress.com
 Description:  GP Childtheme für die Multisite GP-One
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/



/*========================== ALLGEMEINE STYLES ================================*/


/* 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 und Themen-Beitrag 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), .single-thema :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 */
.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;
}

/* 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 {
		width: 100%;
	}
	/** right-sidebar on tablet ist nur 50% breit und sitzt zentriert **/
	.site-content .is-right-sidebar {
       width: 50%;
	   margin-right: auto;
	   margin-left: auto;
  }
}
/** right-sidebar on mobile ist wieder 100% breit **/
@media (max-width:767px) {
	.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;
}

input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], select, textarea {
  border: 2px solid var(--base-2);
  border-radius: 2px;
  padding: 10px 15px;
  max-width: 100%;
}



/* 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(--tint);
    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(--tint);
    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;
}

/* ========================= END FLUENT FORMS CSS ==============================*/