/**
Theme Name: Kompetenz gegen Brustkrebs e.V.
Author: Frey Print + Media
Author URI: https://freymedia.de
Description: Theme für die Website vom Kompetenz gegen Brustkrebs e.V. im Kreis Olpe
Version: 1.0.0
Text Domain: kgb-ev
Template: astra
*/

/* Contents 
----------------------------------- */

ol,
ul { margin: 0 0 1.5em 1.5em; }

/* Titles for static posts and single events */

/* Same like pagebuilder based */
h1.wp-block-heading,
header.entry-header:not(.related-entry-header) .entry-title { font-family: 'Libre Baskerville',serif; line-height: 1.23em; }

@media (min-width: 922px) {
	h1.wp-block-heading,
	header.entry-header:not(.related-entry-header) .entry-title { font-size: 42px !important; font-size: 2.625rem !important; }
}

@media (max-width: 921px) and (min-width: 768px) {
	h1.wp-block-heading,
	.single-tribe_events h1,
	header.entry-header:not(.related-entry-header) .entry-title { font-size: 36px !important; }
	header.entry-header:not(.related-entry-header) .entry-title { font-size: 36px !important; }
}

@media only screen and (max-width: 767px) {
	h1.wp-block-heading,
	.single-tribe_events h1,
	header.entry-header:not(.related-entry-header) .entry-title { font-size: 26px !important; }
}

/* Smaller than pagebuilder based = defined in Customizer */
h2.wp-block-heading,
.single-tribe_events h2 { font-size: 2.2em; }
h3.wp-block-heading { font-size: 1.8em; }
h4.wp-block-heading { font-size: 1.6em; }
h5.wp-block-heading { font-size: 1.4em; }

/* Block image is by default full height here */
.ast-main-header-wrap .lang-options .wp-block-image { display: flex; }


/* Astra 
------------------------------ */

.ast-header-break-point .main-header-bar-navigation .menu-item-has-children > .ast-menu-toggle {
	padding: 0.1em 1em 0 .4em;
	border: 0 none transparent; 
	border-radius: 0;
	line-height: 2.6em;
	box-shadow: 0 0 0 0 transparent;
}

.ast-menu-toggle:focus { outline: thin solid; }

body.blog #content,
body.archive #content,
body.search #content,
body.search-results #content,
body.single-tribe_events #content { background: linear-gradient(0deg, var(--ast-global-color-4) 76%, var(--ast-global-color-5) 0%); }

body.post-type-archive-tribe_events #content { background: linear-gradient(0deg, var(--ast-global-color-4) 68%, var(--ast-global-color-5) 0%); }

body.blog #primary { margin-bottom: 0; }

/* pages without page builder */
header.entry-header > .entry-title { margin-top: 2em; }
main .entry-content > :not(.wp-block-uagb-container) { margin-bottom: 1em; }

body.blog.ast-separate-container .ast-article-inner,
body.archive.ast-separate-container .ast-article-inner { background-color: #fff; background-image: none; box-shadow: 0 0 0 0 transparent !important; }

body.single-post #content { background: linear-gradient(0deg, var(--ast-global-color-4) 90%, var(--ast-global-color-5) 0%); }

body.single-post.ast-separate-container #content #main  .ast-article-single:not(.ast-related-post) { background: #fff; }

.single-post .entry-content[data-ast-blocks-layout] > * { max-width: 100%; }

.site .site-content #primary .ast-article-single { border-radius: 50px 0 50px 0; }

.ast-separate-container .comment-respond { padding: 0; }

.srfm-form-container .srfm-form .srfm-block:not(.srfm-number-block) .srfm-input-common { border: 0 none transparent; background-color: #fff !important; box-shadow: 0 0 0 0 transparent; }

.site-above-footer-wrap[data-section="section-above-footer-builder"] .ast-builder-grid-row { padding: 0 !important; }

footer .widget_block { margin: 0 !important; }

footer nav a { font-size: 0.9em; }

/* Custom footer with page and "insert pages" plugin via Design > Widgets > Widget "Insert pages" in Footer Widget 1 */
footer .wp-block-uagb-info-box.copyright { display: flex; }

footer .wp-block-uagb-info-box.copyright .uagb-ifb-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 5px;
}

@media (min-width: 922px) {
	footer .wp-block-uagb-info-box.copyright,
	footer .wp-block-uagb-info-box.copyright .uagb-ifb-content { justify-content: flex-end; }
}
@media (max-width: 921px) {
	footer .wp-block-uagb-info-box.copyright,
	footer .wp-block-uagb-info-box.copyright .uagb-ifb-content { justify-content: center; }
}

/* Custom Footer ... END */

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row { padding-right: 0; padding-left: 0; }

.form-on-white.srfm-form-container .srfm-form .srfm-block:not(.srfm-number-block) .srfm-input-common { background-color: #fafafa !important; }


/* Posts
------------------------------ */

header.entry-header:not(.related-entry-header) .entry-meta,
header.entry-header:not(.related-entry-header) .entry-meta * { margin: 8px 0 calc(20px + 1.5em); font-weight: 400; font-size: inherit; }


/* Post Grids
------------------------------ */

/* Post Grid Module rounds 2nd number after comma at font size > same for all post grids */
.archive .entry-title,
.blog .entry-title,
.search .entry-title,
.wp-block-uagb-post-grid h4.uagb-post__title {
	line-height: 1.3;
	font-size: 22px;
	font-size: 1.375rem;
	font-weight: var(--ast-blog-title-font-weight,normal);
}


/* Astra Blog / Archive */

/* Post Grid Module can't use comma on some settings */
.ast-blog-featured-section { margin-bottom: 2em; }

/* Post Grid Module rounds 2nd number after comma at font size */
.ast-blog-meta-container { font-size: 0.9em; }

/* Post Grid Module rounds 2nd number after comma at font size */
.entry-meta,
.entry-meta * { line-height: 1.4; font-weight: 600; }


/* Post Grid Module (for handmade news archive)
------------------------- */

/* Class added to module - like title for Blog & Search Results */
.archive-title h1 { color: var(--ast-global-color-2); font-weight: 400; font-size: 3.2rem; }

/* Like Blog & Archive */
.wp-block-uagb-post-grid { margin-bottom: 4em !important; }

.wp-block-uagb-post-grid.is-grid.uagb-post__items { row-gap: 2em !important; column-gap: 2em !important; }

/* Like Blog & Archive - module settings are affected by the here overridden parent styles */
.uagb-post-grid .uagb-post-grid-byline,
.uagb-post-grid .uagb-post__taxonomy { font-weight: 600; font-size: 0.9em; line-height: 1.4; }

/* Featured image position - like Blog & Archive */
.uagb-post__inner-wrap .uagb-post__image:first-child { margin-left: -1.5em !important; margin-right: -1.5em !important; margin-top: -1.5em !important; }


/* Pagination -like Blog & Archive
------------------------- */

.uagb-post-pagination-wrap {
  /*margin-top: 20px;
  margin-left: 10px;*/
  display: block;
  text-align: center;
}

.uagb-post-pagination-wrap .page-numbers {
	display: inline-block !important;
	width: 2.33333em;
	height: 2.33333em;
	padding: 0 !important;
	background-color: transparent !important;
	font-size: 16px;
	font-size: 1.06666rem;
	line-height: 2.33333em;
	font-weight: 500;
}

.uagb-post-pagination-wrap .page-numbers:hover { color: var(--ast-global-color-1) !important; }

.uagb-post-pagination-wrap .page-numbers.current { border-color: var(--ast-global-color-0) !important; color: #fff !important; background-color: var(--ast-global-color-0) !important; }

.uagb-post-pagination-wrap .prev.page-numbers { float: left; }
.uagb-post-pagination-wrap .next.page-numbers { float: right; }

.uagb-post-pagination-wrap .prev.page-numbers,
.uagb-post-pagination-wrap .next.page-numbers {
	width: auto;
	height: 2.33333em;
	padding: 0 1.5em;
	background-color: transparent;
	color: var(--ast-global-color-3);
	font-size: 1.06666rem;
	font-weight: 500;
	line-height: calc(2.33333em - 3px);
}

.uagb-post-pagination-wrap .prev.page-numbers:hover,
.uagb-post-pagination-wrap .next.page-numbers:hover { color: var(--ast-global-color-1); }


/* Search Results 
------------------------- */

/* Like Blog & Archive - not customizable via Customizer for search results! */
body.search-results .ast-article-post .ast-article-inner,
body.search-results .ast-article-post .ast-article-inner:hover { overflow: hidden; border-radius: 50px 0 50px; }

/* Like Blog & Archive - not customizable via Customizer for search results! */
body.search-results.ast-separate-container .ast-article-inner { background-color: var(--ast-global-color-5); }


/* Plugins
----------------------------------- */

/* Newsletter
------------------------------ */

.tnp-field label 			{ display: none; }
.tnp-privacy-field label 	{ display: block !important; }

.tnp-subscription a			{ color: #fff !important; }
.tnp-subscription a:hover 	{ color: rgba(255,255,255,.7) !important; }

.tnp-subscription input.tnp-submit,
.tnp-profile input.tnp-submit,
.tnp-unsubscribe button.tnp-submit,
.tnp-reactivate button.tnp-submit {
	padding: 12px 24px;
	border-color: var(--ast-global-color-0);
	background-color: var(--ast-global-color-0);
	font-weight: 400;
	line-height: 1.28em;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 14px;
	font-size: 0.875rem;	
}

.tnp-subscription input.tnp-submit:hover,
.tnp-profile input.tnp-submit:hover,
.tnp-unsubscribe button.tnp-submit:hover,
.tnp-reactivate button.tnp-submit:hover { border-color: var(--ast-global-color-2);background-color: var(--ast-global-color-2); }


/* The Events Calendar
------------------------------ */

/* Event Grid (generated)
------------------------- */

.egtec-grid { display: grid; grid-template-columns: repeat(var(--egtec-columns, 3), minmax(0,1fr)); gap: 24px; }

.egtec-card {
	overflow: hidden;
	border-radius: 35px 0 35px 0;
	background: var(--ast-global-color-5, #fff);
	text-align: center;
	transition: transform .15s ease, box-shadow .15s ease;
}

.egtec-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }

.egtec-thumb img, 
.egtec-thumb--placeholder {
	display: block; 
	width: 100%; 
	border-radius: inherit;
	background: #f3f4f6;
	aspect-ratio: 16/9; 
	object-fit: cover; 
}

.egtec-title { margin: 12px 14px 2px; font-size: 1.05rem; line-height: 1.3; }

/*.egtec-grid .egtec-card h3.egtec-title { margin: 15px 0 10px; font-size: 21px; font-size: 1.3125rem; }*/

.egtec-title a 			{ text-decoration: none; }
.egtec-title a:hover,
.egtec-title a:focus 	{ text-decoration: underline; }

.egtec-date { margin: 0 14px 16px; line-height: 1.4; }

.egtec-date-main {
	display: block;
	margin-bottom: 2px;
	color: #111827;
	font-size: 1rem;
	font-weight: 600;
}

.egtec-date-time { display: block; font-size: 0.9rem; color: #6b7280; }


/* Calendar
------------------------------ */

/* Misc
------------------------- */

.tribe-common .tribe-common-c-btn-border,
.tribe-common a.tribe-common-c-btn-border,
.tribe-events .tribe-events-c-search__button,
.tribe-events .tribe-events-c-search__button,
.tribe-events button.tribe-events-c-search__button, .tribe-events button.tribe-events-c-search__button,
.tribe-events .tribe-events-c-search__button:focus, .tribe-events .tribe-events-c-search__button:hover, .tribe-events button.tribe-events-c-search__button:focus,
.tribe-events button.tribe-events-c-search__button:hover { padding: 16px 35px; border-radius: 40px; }

.tribe-common .tribe-common-c-btn-border,
.tribe-common a.tribe-common-c-btn-border,
.tribe-events .tribe-events-c-search__button,
.tribe-events .tribe-events-c-search__button,
.tribe-events button.tribe-events-c-search__button,
.tribe-events button.tribe-events-c-search__button {
	border: 0 none transparent;
	background-color: var(--ast-global-color-0);
	color: #fff;
	font-family: inherit;
	font-weight: 400;
	line-height: 1.28em;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 14px;
	font-size: 0.875rem;
}

.single-tribe_events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button-text:focus,
.single-tribe_events .tribe-events-c-subscribe-dropdown button.tribe-events-c-subscribe-dropdown__button-text:focus,
.tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button-text:focus,
.tribe-events .tribe-events-c-subscribe-dropdown button.tribe-events-c-subscribe-dropdown__button-text:focus { outline: 1px solid #fff !important; border: 0 none transparent; }

.tribe-common a:not(.tribe-common-anchor--unstyle):focus,
.tribe-events-header .tribe-common-form-control-text__input:focus,
button.tribe-events-c-top-bar__datepicker-button:focus { outline: 1px solid var(--ast-global-color-0) !important; border: 0 none transparent; }

.tribe-events .tribe-events-c-nav__next:disabled,
.tribe-events .tribe-events-c-nav__prev:disabled { color: #bbb !important; }

.tribe-events-c-nav__list button { box-shadow: 0 0 0 0 transparent; }

.tribe-common--breakpoint-medium.tribe-events .tribe-events-l-container { padding-bottom: var(--tec-spacer-12); padding-top: var(--tec-spacer-8); }

.tribe-common--breakpoint-xsmall.tribe-events .tribe-events-l-container { padding-bottom: var(--tec-spacer-8); padding-top: var(--tec-spacer-8); }


/* Header
------------------------- */

.tribe-events-header .tribe-events-c-search__input-group { margin-right: 20px !important; }

/*.tribe-events .tribe-events-header .tribe-events-header__top-bar {display: none; }*/

.tribe-events .tribe-events-header { justify-content: center; }

/* Hide "today" button in list view */
.post-type-archive-tribe_events .tribe-events .tribe-events-c-top-bar__today-button { display: none !important; }

/* content width, not full */
.tribe-events .tribe-events-c-top-bar { flex: 0 0 auto; margin-right: var(--tec-spacer-7); }

.tribe-events-header .tribe-events-header__events-bar.tribe-events-c-events-bar--border { border: 0 none transparent !important; }

.tribe-events-header .tribe-common-c-btn-border-small,
.tribe-events-header a.tribe-common-c-btn-border-small,
.tribe-events-c-top-bar__datepicker-time > span { font-size: 1rem !important; }

.tribe-events .datepicker .day.current,
.tribe-events .datepicker .day.current.focused,
.tribe-events .datepicker .day.current:focus,
.tribe-events .datepicker .day.current:hover,
.tribe-events .datepicker .month.current,
.tribe-events .datepicker .month.current.focused,
.tribe-events .datepicker .month.current:focus,
.tribe-events .datepicker .month.current:hover,
.tribe-events .datepicker .year.current,
.tribe-events .datepicker .year.current.focused,
.tribe-events .datepicker .year.current:focus,
.tribe-events .datepicker .year.current:hover,
.tribe-events .datepicker .day.focused,
.tribe-events .datepicker .day:focus,
.tribe-events .datepicker .day:hover,
.tribe-events .datepicker .month.focused,
.tribe-events .datepicker .month:focus,
.tribe-events .datepicker .month:hover,
.tribe-events .datepicker .year.focused,
.tribe-events .datepicker .year:focus,
.tribe-events .datepicker .year:hover { color: #fff; }


/* List view
------------------------- */

.tribe-events-view--list,
.tribe-events-view--day { background-color: transparent; }

.tribe-events-calendar-list .tribe-events-calendar-list__event-date-tag-weekday,
.tribe-events-calendar-list .tribe-events-calendar-list__event-date-tag-daynum { color: #fff !important; }

*.tribe-events-calendar-list .tribe-events-calendar-list__month-separator-text,
.tribe-events-calendar-list .tribe-events-calendar-list__event-datetime,
.tribe-events-calendar-list .tribe-events-calendar-list__event-title-link,
.tribe-events-calendar-list .tribe-events-calendar-list__event-venue,
.tribe-events-calendar-list .tribe-events-calendar-list__event-description { color: var(--ast-global-color-3) !important; }

.tribe-events-calendar-list .tribe-events-calendar-list__month-separator-text,
.tribe-events-single-event-title {
	font-size: 42px !important;
	font-size: 2.625rem !important;
	font-family: 'Libre Baskerville', serif !important;
	line-height: 1.23em !important;	
}

.tribe-events-calendar-list .tribe-events-calendar-list__event-row,
.tribe-events-calendar-day .tribe-events-calendar-day__event { border-radius: 50px 0 50px !important; background-color: #fff !important; }

.tribe-events-calendar-list .tribe-events-calendar-list__event-date-tag { border-radius: 50px 0 0 0 !important; background-color: var(--ast-global-color-0); }

.tribe-events-calendar-list .tribe-events-calendar-list__event-title-link { font-size: 1.5rem; font-family: 'Libre Baskerville', serif; line-height: 1.3em; }

.tribe-common .tribe-common-anchor-thin:active,
.tribe-common .tribe-common-anchor-thin:focus,
.tribe-common .tribe-common-anchor-thin:hover { border-bottom: 1px solid var(--ast-global-color-3); }

.tribe-events-calendar-list-nav { border-top-color: var(--ast-global-color-0) !important; }


/* Month Sheet View
------------------------- */

.tribe-events-calendar-month { padding: 50px !important; border-radius: 50px 0 50px; }

.tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum { color: #fff !important; }

.tribe-events .tribe-events-calendar-month__day-cell--mobile { justify-content: center; }


/* Prev next nav
------------------------- */

/* Plugin hasn't styles for day view o_O */
.tribe-events-c-nav__prev,
.tribe-events-c-nav__next { text-transform: uppercase; }


/* Single Event
------------------------------ */

body.single-tribe_events #tribe-events-pg-template { background-color: transparent; }

body.single-tribe_events .tribe-events-single > .type-tribe_events {
	margin-bottom: var(--tec-spacer-11);
	border-radius: 50px 0 50px !important;
	background-color: #fff;
	background-image: none;
}

body.single-tribe_events .tribe-events-single .tribe-events-event-image { width: calc(100% + 5em) !important; margin: 0 -2.5em 2.5em -2.5em !important; }

body.single-tribe_events .tribe-events-single .tribe-events-event-image img { border-radius: 50px 0 0 0 !important; }

body.single-tribe_events #tribe-events-footer { border-top: 1px solid var(--ast-global-color-0) !important; }

.tribe-events-content,
.tribe-events-event-meta { font-family: 'Open Sans',sans-serif; }

.tribe-events-schedule { color: var(--ast-global-color-0); }

.tribe-events-content h2,
.tribe-events-content h3,
.tribe-events-content h4,
.tribe-events-content h5,
.tribe-events-content h6 { 
	margin-top: 1em;
	margin-bottom: 1em;
	color: var(--ast-global-color-2);
	font-family: 'Libre Baskerville', serif;
}

.tribe-events-content > :first-child { margin-top: 0 !important; }


/* Media Queries
----------------------------------- */

@media (max-width: 1024px) {

	/* The Events Calendar - Event Grid (generated) */
	.egtec-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }

}

@media (min-width: 922px) {

	.site-footer-below-section-1 > * { width: unset !important; margin-bottom: 0; }
	
	.site-footer-below-section-1 .ast-footer-copyright.ast-builder-layout-element,
	.site-footer-below-section-1 .footer-widget-area[data-section=section-footer-menu]{ flex: 2 2 auto; }
	
	.site-footer-below-section-1 .footer-widget-area[data-section=sidebar-widgets-footer-widget-3]{ flex: 1 1 auto; }
	
}

@media (max-width: 921px), (max-width: 544px) {

	.site-primary-footer-wrap[data-section="section-primary-footer-builder"].ast-footer-row-mobile-stack .site-footer-section { margin-bottom: 0; }

}

@media (max-width: 921px) {

	.site .site-content #primary .ast-article-single { padding-top: 0 !important; }

}

@media (min-width: 768px) {

	/*.tribe-events-event-meta.primary,
	.tribe-events-event-meta.secondary { width: 100%; }

	.tribe-events-meta-group { width: unset; }

	.tribe-events-meta-group.tribe-events-meta-group-details { flex: 0 0 145px; }
	
	.tribe-events-meta-group.tribe-events-meta-group-venue { flex: 1 0 250px; }*/
	
	.tribe-events-event-meta.primary/*,
	.tribe-events-event-meta.secondary*/ { width: 100%; }
	
	/* Order + style in German */
	.tribe-events-single-section.tribe-events-event-meta .tribe-events-meta-group-venue .tribe-venue-location .tribe-address { display: flex; flex-wrap: wrap; }

	.tribe-events-single-section.tribe-events-event-meta .tribe-events-meta-group-venue .tribe-venue-location .tribe-address .tribe-street-address { flex: 0 0 100%; order: 0; }
	
	.tribe-events-single-section.tribe-events-event-meta .tribe-events-meta-group-venue .tribe-venue-location .tribe-address .tribe-postal-code { flex: 0 0 auto; order: 1; padding-right: 5px; }
	
	.tribe-events-single-section.tribe-events-event-meta .tribe-events-meta-group-venue .tribe-venue-location .tribe-locality { flex: 0 0 220px;  order: 3; }
	
	/* 1) Komma zwischen Ort + Bundesland 2) Bundesland 3) Land */
	.tribe-events-single-section.tribe-events-event-meta .tribe-events-meta-group-venue .tribe-venue-location .tribe-delimiter,
	.tribe-events-single-section.tribe-events-event-meta .tribe-events-meta-group-venue .tribe-venue-location .tribe-region.tribe-events-abbr,
	.tribe-events-single-section.tribe-events-event-meta .tribe-events-meta-group-venue .tribe-venue-location .tribe-country-name { display: none; }
	
	/* Order + style in German - END */

	.tribe-events-meta-group.tribe-events-meta-group-organizer { flex: 0 0 300px; }
	
}

@media (max-width: 767px) {

	/* wrap items if too wide */
	.ast-builder-grid-row > .site-header-primary-section-center { flex-wrap: wrap; column-gap: 10px; row-gap: 10px; }

}

@media (max-width: 640px) {

	/* The Events Calendar - Event Grid (generated) */
	.egtec-grid { grid-template-columns: 1fr; }
	
	footer .wp-block-navigation { flex-wrap: wrap; justify-content: center; }

}