/*
 Theme Name:   GeneratePress Child LAGFA Niedersachsen
 Theme URI:    https://generatepress.com
 Author:       ideenwerft
 Author URI:   https://www.ideenwerft.com
 Description:  GeneratePress child theme
 Template:     generatepress
 Version:      1.0
*/

/* ---------- VARIABLES ---------- */
:root {
    --primary-clr: #00697e;
    --darker-primary-clr: #004a59;
    --lighter-primary-clr: #afc8cf;
    --cta-clr: #ffc000;
	--darker-cta-clr: #e29a01;
    --font-headlines: 'Open Sans', Helvetica, sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --wp--style--block-gap: 2em;
}

/* ---------- BASICS ---------- */
body {
    overflow-x: hidden;
    background-color: var(--white);
    font-size: 1rem;
  	color: #555;
}
#content {
    padding-bottom: 8rem;
}
.fullwidth {
    width: 100vw;
    margin: 0 calc(50% - 50vw);
}
.entry-content > [class*="wp-block-"]:not(:last-child):not(.wp-block-heading) {
    margin-bottom: 3rem;
}
.entry-content>[class*=wp-block-]:not(:last-child):not(.wp-block-heading):not(.wp-block-gallery):not(.wp-block-quote) {
    margin-bottom: 0;
}

/* .... GRIDS .... */
.grid {
    display: grid;
    grid-gap: 40px;
}
/* 2er */
@media (min-width:700px) {
    .grid-2 {
        grid-template-columns: repeat(2,1fr);
    }
}
@media (min-width:1000px) {
    .grid-2 {
        grid-template-columns: repeat(2,1fr);
    }
}
/* 3er */
@media (min-width:700px) {
    .grid-3 {
        grid-template-columns: repeat(2,1fr);
    }
}
@media (min-width:1000px) {
    .grid-3 {
        grid-template-columns: repeat(3,1fr);
    }
}
/* 4er */
@media (min-width:700px) {
    .grid-4 {
        grid-template-columns: repeat(2,1fr);
    }
}
@media (min-width:1000px) {
    .grid-4 {
        grid-template-columns: repeat(4,1fr);
    }
}

h3 + .wp-block-columns,
p + .wp-block-columns {
    margin-top: 2rem;
}
.wp-block-columns + .wp-block-columns {
    margin-top: 4rem;
}

/* .... SPALTE MIT BACKGROUND .... */
.wp-block-column.has-background {
    padding: 2rem;
}
.wp-block-column.has-background p:last-child {
    margin-bottom: 0;
}
.wp-block-column.has-background ul {
    margin-left: 20px;
    padding-left: 0 !important;
}
.wp-block-column.has-contrast-background-color * {
    color: #fff !important;
}

/* .... TEXT .... */
h1, h2, h3, h4 {
	font-family: var(--font-headlines);
	font-weight: 600;
	color: var(--primary-clr);
}
h1 {
	font-size: 2.2rem;
    margin-bottom: 1.9rem;
    hyphens: auto;
    -webkit-hyphens: auto;
}
h2 {
	font-size: 1.6rem;
    margin: 0 0 1.6rem;
}
h2:not(.entry-title):not(.headline) {
    margin-top: 2.5rem;
    margin-bottom: 2.2rem;
    background: var(--primary-clr);
    padding: 10px 20px;
    font-size: 1.5rem;
    color: #fff;
}
h1 + h2 {
    margin-top: -1.2rem;
    margin-bottom: 3rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1.2rem;
}
h3 {
	font-size: 1.6rem;
    line-height: 1.3em;
	margin-bottom: 1.25rem;
}
h4 {
	font-size: 1.3rem;
    line-height: 1.2em;
	margin-bottom: 1.2rem;
}
p {
    margin-bottom: 1rem;
    line-height: 1.65rem;
}
.wp-block-buttons + p {
    margin-top: 1.2rem;
}
/*
main .entry-content h2, 
main .entry-content h3, 
main .entry-content h4, 
main .entry-content p, 
main .entry-content ul, 
main .entry-content ol {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
*/
main .entry-content ul {
	padding-left: 0px;
}
main .entry-content li {
	margin-bottom: 10px;
}
main a {
	color: var(--primary-clr);
    font-weight: 600;
}
main a:hover {
	text-decoration: none;
	color: var(--darker-cta-clr);
}
b, strong {
    font-weight: 600;
}
main p strong {
    color: #333;
}
main a.mail {
    position: relative;
    padding-left: 25px;
}
main a.mail:before,
main a.mail:after {
    position: absolute;
    left: 0;
    font-family: "Font Awesome 5 Duotone";
    font-weight: 900;
    display: inline-block;
    color: var(--primary-clr);
    font-size: 1.1em;
}
main a.mail:before {
    content: "\f658";
    opacity: 1;
}
main a.mail:after {
    content: "\10f658";    
    opacity: 0.4;
}
main i + a.mail {
    padding-left: 0;
}
main i + a.mail:before,
main i + a.mail:after {
    display: none;
}
main a.tel:before {
    content: "\f095";
    font-family: "Font Awesome 5 Pro";
    position: relative;
    display: inline-block;
    font-weight: 400;
    font-size: 1.1em;
    margin-right: 8px;
    float: left;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.7rem;
        margin-bottom: 2rem;
    }
}


/* .... BUTTONS .... */
button,
a.button,
a.btn,
input[type=submit],
a.wp-block-button__link:not(.has-background),
a.wp-show-posts-read-more:link, 
a.wp-show-posts-read-more:visited {
	padding: 7px 20px;
    margin-top: 10px;
    border-radius: 0;
	background: var(--cta-clr);
	display: inline-block;
	color: #444;
    font-weight: bold;
}
button:hover,
a.button:hover,
a.btn:hover,
button:focus,
a.button:focus,
a.btn:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus,
a.wp-show-posts-read-more:hover,
a.wp-show-posts-read-more:focus {
	background: var(--darker-cta-clr);
    color: #fff;
}

/* .... FORM FIELDS .... */
input[type="text"],
input[type="search"],
button.wp-block-search__button {
    border: 1px solid var(--primary-clr);
    border-radius: 5px;
}
input[type="text"],
input[type="search"] {
    background: #fff;
}
input[type="text"]:focus,
input[type="search"]:focus {
    background: #eee;
}

/* .... OTHER .... */
img {
  	max-width: 100%;
  	height: auto; 
}
.wpcf7 .note {
	margin-top: 30px;
	font-style: italic;
	font-size: 0.9em;
    opacity: 0.7;
}
.iframewrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}
.iframewrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    border: none;
}

/* .... HEADER .... */
.inside-header aside#block-3 p {
    font-weight: 700;
    line-height: 1.45em;
}
.inside-header aside#block-4 a {
    display: inline-block;
    color: var(--primary-clr);
}
.inside-header aside#block-4 i {
    margin-right: 4px;
}

@media (min-width:1100px) {
    .inside-header {
        align-items: stretch;
        padding-bottom: 30px;
    }
    .inside-header .header-widget {
        position: relative;
        flex-grow: 1;
    }
    .inside-header aside#block-3 {
        position: absolute;
        left: 40px;
        bottom: -3px;
    }
    .inside-header aside#block-4 {
        position: absolute;
        right: 0;
        top: 0;
        text-align: right;
        font-size: 0.95em;
    }
}
#hero img {
	width: 100%;
}

/* .... NAVIGATION .... */
.main-navigation {
    background: #eaeaea;
}
.main-navigation #menu-hauptnavigation > li > a {
    font-size: 18px;
    line-height: 50px !important;
    font-weight: 500;
}
.main-navigation .main-nav ul li a, 
.main-navigation .menu-toggle, 
.main-navigation .menu-bar-items {
    color: #333;
}
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a, .main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a, .main-navigation .main-nav ul li.sfHover:not([class*="current-menu-"]) > a, .main-navigation .menu-bar-item:hover > a, .main-navigation .menu-bar-item.sfHover > a {
    background: none;
}
.main-navigation .main-nav ul ul li > a {
    font-size: 15px;
    padding: 6px 20px;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    color: var(--primary-clr);
    background: none;
}
.main-navigation .sub-menu {
    padding-top: 5px;
    min-width: 200px;
    width: inherit;
}
.main-navigation .main-nav ul ul li[class*="current-menu-"] > a {
    color: var(--primary-clr);
    background-color: #ccc;
    font-weight: bold;
}
.main-navigation .main-nav ul ul li.menu-item-object-custom > a:link, 
.main-navigation .main-nav ul ul li.menu-item-object-custom > a:visited {
    font-weight: normal;
    background-color: transparent;
    color: #515151;
}
.main-navigation .main-nav ul ul li.menu-item-object-custom > a:hover, 
.main-navigation .main-nav ul ul li.menu-item-object-custom > a:focus {
    color: #7a8896;
}
.main-navigation .main-nav > ul > li > a:after {
    content: '';
    height: 5px;
    width: 100%;
    background: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}
.main-navigation .main-nav > ul > li:hover > a:after {
    background: var(--primary-clr);
}
.main-navigation .main-nav > ul > li[class*="current-menu-"] > a:after {
    background: var(--primary-clr);
}

@media (min-width:1151px) {
    #primary-menu {
        flex-grow: 1;
        padding-right: 30px;
    }
    #menu-hauptnavigation {
        display: flex;
        justify-content: space-around;
    }
    #menu-item-25 a {
        padding: 0 10px !important;
    }
    .main-navigation .main-nav ul li.menu-item-has-children>a {
        padding-right: 20px;
    }
    .menu-item-has-children .dropdown-menu-toggle {
        display: none;
    }
}


/* ... BREADCRUMB .... */
#breadcrump {
    margin-left: 40px;
    font-size: 0.85rem;
}


/* .... CONTENT .... */

/* startseite */
.einleitung h1 {
    font-size: 1.9rem;
} 
.einleitung h1 + h2 {
    text-transform: none;
    font-size: 1rem;
    line-height: 1.4em;
    color: #666;
    margin-bottom: 1rem;
    background: none;
    padding: 0;
    margin-top: -1.2rem;
}
/* buttons */
.einleitung {
    margin-bottom: 3rem !important;
}
.einleitung > div:last-child .wp-block-button {
    height: 100%;
}
.einleitung > div:last-child .wp-element-button:link,
.einleitung > div:last-child .wp-element-button:visited {
    display: flex;
    align-items: center;
    height: 100%;
    margin-top: 0;
    background: var(--primary-clr);
    font-size: 1.3rem;
    hyphens: auto;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
}
.einleitung > div:last-child .wp-element-button:hover,
.einleitung > div:last-child .wp-element-button:focus  {
    background: var(--darker-primary-clr);
}
.einleitung > div:last-child .wp-element-button:before {
    content: "\f101";
    font-family: "Font Awesome 5 Pro";
    position: relative;
    display: inline-block;
    font-weight: 900;
    font-size: 1.5em;
    margin-right: 17px;
    margin-left: 4px;
}
.einleitung > div:last-child .engagement .wp-element-button:before {
    content: "\f12e";
}
.einleitung > div:last-child .ukraine .wp-element-button:before {
    content: '';
    width: 40px;
    border-top: 15px solid #026bdf;
    border-bottom: 15px solid #ffd700;
    display: block;
    margin-left: 0;
}
.einleitung > div:last-child .mitglieder-bieten .wp-element-button:before {
    content: "\f4be";
}


/* .... BLOG LATEST POSTS .... */
/* posts auf start */
.wp-block-latest-posts__list {
    margin-left: 0;
    margin-right: 0;
    max-width: 100% !important;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.wp-block-latest-posts__list li:before {
    display: none;
}
.wp-block-latest-posts__list li {
    position: relative;
    width: calc( (100% / 3) - 20px );
    display: flex;
    flex-direction: column;
    padding-bottom: 70px;
    background: #fff;
    color: #555;
}
.wp-block-latest-posts__list li .wp-block-latest-posts__featured-image {
    order: 0;
}
.wp-block-latest-posts__list li time {
    order: 1;
    text-align: center;
    font-size: 1em;
    color: #808080;
    margin-top: .5em;
    margin-bottom: .5em;
}
.wp-block-latest-posts__list li > a {
    order: 2;
    margin-bottom: 0.5em;
    margin-top: 1em;
    padding: 0 20px;
    color: var(--primary-clr);
    line-height: 1.3em;
    font-size: 1.1rem;
}
.wp-block-latest-posts__list li .wp-block-latest-posts__post-excerpt {
    order: 3;
    margin-bottom: 0;
    padding: 0 20px;
}
.wp-block-latest-posts__list li .wp-block-latest-posts__featured-image {
    width: 100%;
}
.wp-block-latest-posts__list li .wp-block-latest-posts__featured-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.wp-block-latest-posts__list .wp-block-latest-posts__post-excerpt .read-more {
    position: absolute;
    bottom: 0;
    left:0;
    right: 0;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 9px;
    color: #fff;
    background-color: var(--cta-clr);
}
.wp-block-latest-posts__list .wp-block-latest-posts__post-excerpt .read-more:hover {
    color: var(--primary-clr);
}

@media (max-width: 1020px) {
    .wp-block-latest-posts.wp-block-latest-posts__list {
        flex-wrap: wrap;
    }
    .wp-block-latest-posts__list li {
        width: calc( (100% / 2) - 20px );
        margin-bottom: 2.5em;
    }
}
@media (max-width: 768px) {
    .wp-block-latest-posts__list li {
        width: 100%;
    }
}

/* .... BLOG LIST .... */
.post .entry-summary {
    margin-top: 1em;
}

/* .... BLOG SINGLE .... */
.single h1.entry-title {
    margin-bottom: 1rem;
}
.single .featured-image img {
    width: 100%;
}
.single .featured-image .caption {
    margin-top: 5px;
    text-align: center;
    line-height: 1.3;
    font-size: 0.85em;
    color: #999;
}
.single .entry-meta {
    font-size: 1rem; 
}
.single .entry-meta a {
    line-height: 1.4em;
}
.single .entry-meta .posted-on {
    font-size: 1.1rem;
}
/* post navigation */
.single .post-navigation {
    margin-top: 70px !important;
    overflow: visible;
}
.single .post-navigation > div {
    position: relative;
    margin-bottom: 20px;
}
.single .post-navigation > div.nav-next {
    text-align: right;
}
.single .post-navigation .gp-icon {
    position: absolute;
    top: -4px;
    margin: 0 !important;
    font-size: 1.5rem;
    color: var(--cta-clr);
}
.single .post-navigation .icon-arrow-left {
    left: -25px;
}
.single .post-navigation .icon-arrow-right {
    right: -25px;
}
@media (min-width:769px) {
    .single .featured-image {
        max-width: 45%;
    }
    .single .post-navigation {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 30px;
        overflow: visible;
    }
    .single .post-navigation .gp-icon {
        top: -4px;
    }
}


/* .... BLOCK GALLERY ... */
.wp-block-gallery {
    margin: 3rem 0;
}
.wp-block-gallery .wp-element-caption {
    font-size: 15px !important;
    background: none !important;
    position: relative !important;
    color: #333 !important;
    line-height: 1.2em;
    margin-top: 0.4em;
}


/* .... BLOCK ZITAT .... */
blockquote.wp-block-quote {
    border-left: 5px solid rgba(0,0,0,.2);
    padding: 20px 0 20px 60px;
}
.wp-block-quote p {
    position: relative;
    font-size: 1.5rem !important;
    color: #333;
}
.wp-block-quote p:first-child::before,
.wp-block-quote p:last-of-type::after  {
    content: '"';
    display: inline;
    font-size: 4rem;
    color: var(--primary-clr);
    font-family: 'Times New Roman', Times, serif;
}
.wp-block-quote p:first-child::before {
    position: absolute;
    top: 10px;
    left: -35px;
}
.wp-block-quote p:last-of-type::after {
    position: relative;
    bottom: -30px;
    right: -15px;
}
.wp-block-quote cite {
    font-size: 16px;
    font-style: normal;
}

/* .... Youtube DSGVO .... */
a.youtube-dsgvo {
    position:relative;
    display:block; 
}
a.youtube-dsgvo img {
    width: 100%;
}
a.youtube-dsgvo .text-wrap {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: 
    rgba(25,25,25,.8);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    text-align: center;
    z-index: 10;
    opacity: 0;
}
a.youtube-dsgvo:hover .text-wrap {
    opacity: 1;
}
a.youtube-dsgvo .text-wrap p {
    font-size: 16px;
    color: #fff;
}
.youtube-dsgvo {
	font-size: 16px;
}

/* .... FORMULARE .... */
.wpcf7 {
    width: 100%;
}
.wpcf7 fieldset {
    width: 100%;
    max-width: 900px;
    margin-bottom: 30px;
    padding: 30px 30px 0px;
    background: #f3f3f3;
}
.wpcf7 fieldset legend {
    width: auto;
    margin: 0;
    padding: 4px 25px;
    background: var(--primary-clr);
    color: #fff;
    font-weight: 600;
}
.wpcf7 .row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
}
.wpcf7 .row > div {
    width: 49%;
}
.wpcf7 .row.checkbox > div {
    width: 100%;
}
.wpcf7 label {
    display: block;
    margin-bottom: 5px;
    font-size: 1em;
    font-weight: 500;
    color: var(--secondary-clr);
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"] ,
.wpcf7 input[type="submit"] {
    width: 100%;
}
.wpcf7 input[type="text"],
.wpcf7 [type="email"],
.wpcf7 textarea {
    border: none;
    background-color: #fff;
    border: 2px solid #ddd;
}
.wpcf7-list-item {
    margin: 0;
}
.wpcf7 .dsgvo-check .wpcf7-list-item {
    margin-left: 0;
}
.wpcf7 .dsgvo-check a {
    padding-right: 0;
}
.wpcf7 .datenschutz-link:before,
.wpcf7 .datenschutz-link:after {
    display: none;
}
.wpcf7 .submit-button {
    width: 30%;
}
.wpcf7 .pflichtfelder span {
    font-size: .8em;
    opacity: .7;
}
.wpcf7-not-valid {
    border: 1px solid #c00 !important;
}

@media (max-width: 768px) {
    .wpcf7 .row {
        display: block;
    }
    .wpcf7 .row > div {
        width: 100%
    }
    .wpcf7 {
        padding-bottom: 2em;
    }
}
@media (max-width: 500px) {
    .wpcf7 .submit-button {
        width: 100%;
    }
}


/* ... SEARCH .... */
.search h2.entry-title {
    margin-bottom: 0;
    text-align: center;
    margin-top: 2rem;
}
.search .entry-summary {
    margin-top: 1em;
}

/* .... 404 .... */
.error404.separate-containers .site-main {
    margin: 70px 20px;
}
.error404 h1,
.error404 p,
.error404 form,
.search h1,
.search p,
.search form {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.error404 form,
.search form {
    margin-top: 50px;
    max-width: 500px;
}


/* .... FOOTER .... */
.site-footer {
    border-top: 2px solid var(--primary-clr);
}
.footer-widgets {
    background-color: #f3f3f3;
}
.site-info {
    background-color: var(--primary-clr);
}
#footer-widgets a {
	color: var(--primary-clr);
    font-weight: 600;
}
.copyright-bar {
    display: flex;
    width: 100%;
    justify-content: space-between;
}
#menu-musthaves {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}
#menu-musthaves li {
    margin: 0 10px;
}

/* .... PRINT STYLES .... */
@media print {
    #hero,
	.main-navigation,
	#mobile-menu-control-wrapper,
	.site-navigation,
	.primary-menu,
	.must-have {
        display: none;
    }
	body, h1, h2, h3, h4, p, ul, li, a {
		color: #444 !important;
	}
}
