/*
 Theme Name:   Astra Child
 Description:  Astra Child Theme
 Author:       Anita Bachmann
 Author URI:   https://anitabachmann.ch
 Template:     astra
 Version:      1.0
 Text Domain:  astra-child
*/

/*@media (max-width: 921px) {*/
  :root {
    --ast-border-color: #958b8b;
	--blue: #3372b5;
  }
/*}*/

/* Calendar */
 :root {
	--tec-font-family-sans-serif: font-family: 'Ubuntu',sans-serif;
	--tec-color-text-primary: #1e1e1e;
	--tec-color-accent-primary: #3372b5;
	--tec-border-radius-default: 0;
	--tec-color-link-accent: #3372b5!important; 
	--tec-font-size-2: 16px!important;
	--tec-line-height-3: 1.7;
}


/*------------------------------*/
/*-------  header -------------*/
/*------------------------------*/
@media (min-width: 1024px) and (max-width: 1920px) {
	.wp-block-cover {
		height: 25vw;
		min-height: 25vw;
	}
}

@media (max-width: 1023px) {
	.wp-block-cover .wp-block-cover__image-background {
		object-fit: contain;
		height: auto;
	}
	.ast-header-break-point .ast-site-identity {
  		width: auto;
	}
	.home .header-bild {
		height: 38vw;
		min-height: 38vw;
	}
}
.wp-block-cover__inner-container {
	position: absolute!important;
  	bottom: 30px;
  	right: 30px;
}

/*.wp-block-media-text__media {
	display: none;
}*/
.entry-content > .wp-block-cover {
	margin-top: 100px;
}
.ast-primary-header-bar {
  background-color: #ffffff;
}

/* Logo */
.ast-site-identity {
/*  	padding: 5px 0;
	margin-top: -10px;
  	padding-bottom: 5px;*/
	position: absolute;
  	left: 25px;
	padding: 10px 0;
	background-color: white;
  border-radius: 65px;
}
header .custom-logo-link img {
	display: inline-block;
	height: 100px;
  	width: auto;
}
@media (min-width: 1024px) {
	.home .ast-site-identity {
		top: 5px;
    	left: 10px;
    	background: url("/wp-content/uploads/2025/10/alphorngruppe-logo-nobg.png") no-repeat 0 0 / 165px 200px;
    	height: 200px;
    	width: 165px;
	}
	.home header .custom-logo-link img {
		display: none;
		/*height: 200px;
		max-width: 100%;*/
	}
	.home .wp-block-cover .wp-block-cover__image-background {
/*		padding-left: 100px;
  		padding-right: 100px;*/
		padding-left: 111px;
    	padding-right: 100px;
  		/*background-color: #958b8b;*/
	}
}

/* Menu */
.ast-builder-menu-1 {
	font-size: 1.1rem;
  	font-family: 'Merriweather',serif;
}
.ast-builder-menu-1 .menu-item:hover > .menu-link, .ast-builder-menu-1 .inline-on-mobile .menu-item:hover > .ast-menu-toggle {
  /*color: var(--ast-global-color-2);*/
	color: #a93933;
}
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link, .ast-builder-menu-1 .inline-on-mobile .menu-item.current-menu-item > .ast-menu-toggle, .ast-builder-menu-1 .current-menu-ancestor > .menu-link {
  /*color: var(--ast-global-color-5);*/
	color: #a93933;
}
.ast-desktop .ast-menu-hover-style-underline > .menu-item:hover > .menu-link::before, .ast-desktop .ast-menu-hover-style-overline > .menu-item:hover > .menu-link::before {
	background-color: transparent;
  	transform: none;
}

/* toggle menu */
[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
	width: 50px;
  	height: 50px;
  	fill: #1e1e1e;
}
@media (max-width: 767px) {
	.ast-header-break-point #ast-mobile-header, .ast-main-header-wrap {
  		min-height: 130px;
	}
	.ast-mobile-header-wrap .ast-primary-header-bar {
		height: 110px;
	}
}


/*-------------------------------*/
/*-------  calendar -------------*/
/*-------------------------------*/
.tribe-events-widget .tribe-events-widget-events-list__header,
.home .tribe-events-widget-events-list__view-more {
	display: none;
}
.home .wp-block-group.has-background .tribe-events-widget-events-list__event-date-tag-month,
.home .wp-block-group.has-background .tribe-common-h2,
.home .wp-block-group.has-background .tribe-common .tribe-common-b2,
.home .wp-block-group.has-background .tribe-common a
{
	font-family: 'Ubuntu',sans-serif;
	color: #ffffff;
}
.tribe-events-widget .tribe-events-widget-events-list__event-date-tag-datetime {
	text-align: left!important;
}
.home .wp-block-group.has-background .tribe-events-widget-events-list__event-date-tag-month,
.home .wp-block-group.has-background .tribe-common .tribe-common-b2
{
	font-size: var(--tec-font-size-4);
}
.home .wp-block-group.has-background .tribe-common a {
	font-size: var(--tec-font-size-5);
	text-decoration: none;
}
.tribe-common .tribe-common-anchor-thin, .tribe-common .tribe-common-anchor-thin:active, .tribe-common .tribe-common-anchor-thin:focus, .tribe-common .tribe-common-anchor-thin:hover, .tribe-common .tribe-common-anchor-thin:visited, .tribe-common .tribe-common-h7 {
  	border: none!important;
	outline: none;
}
.tribe-events-widget-events-list__event-title:visited {
	border: none;
}
.home .wp-block-group.has-background .tribe-common-h2 {
	font-size: var(--tec-font-size-8);
}
.tribe-common .tribe-common-anchor-thin:hover {
  border-bottom: none!important;
}
.tribe-events-widget-events-list__event-datetime-wrapper {
	padding-top: 1px!important;
}
.tribe-events-widget .tribe-events-widget-events-list__event-datetime-wrapper {
  margin-bottom: calc(var(--tec-spacer-0) - 1px)!important;
}
/* single event */
.tribe_events.ast-article-single {
  padding: 0 !important;
}
.tribe-events-back,
.tribe-events-single-section.tribe-events-event-meta {
	display: none;
}

/* Kalender */
.tribe-events .tribe-events-c-search__button, .tribe-events button.tribe-events-c-search__button {
  background-color: var(--blue);
}



/*------------------------------*/
/*-------  content -------------*/
/*------------------------------*/

.entry-content > .wp-block-group.home-first-block {
	padding-top: 50px;
}
.entry-content > .wp-block-group {
	padding-left: 0;
	padding-right: 0;
}
/*.home .wp-block-media-text.has-media-on-the-right {
	padding-left: 25px;
}*/
@media (min-width: 1241px) {
	.home .entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
/*		padding-left: calc(var(--wp--custom--ast-default-block-left-padding) - 40px);*/
	}
}
.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
  padding-top: 10px;
}
.wp-block-media-text__content .wp-block-group, .wp-block-media-text__content .wp-block-group .wp-block-heading {
	padding-right: 0!important;
}
@media (max-width: 1240px) {
	.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
  		padding-left: 6%;
	}
}

#contact.wp-block-group {
/*	background: #fceac6!important;*/
}
.entry-content p {
  margin-bottom: 0.3em;
}

/* images */
.image-circle img {
	border-radius: 50px;
}
.claim {
  font-size: 24px;
  font-size: 1.2rem;
  font-family: 'Merriweather',serif;
  line-height: 1.7em;
	color: #1e1e1e;
	margin-bottom: 15px;
	text-align: center!important;
}
@media (max-width: 600px) {
	img.size-full {
		margin-left: calc(var(--wp--custom--ast-default-block-left-padding) * -1);
  		width: 100vw;
	}
	.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content .wp-block-group {
		padding-right: 20px!important;
	}
}
.entry-content p:not.has-text-align-center {
	text-align:justify;
}

@media (min-width: 1241px) {
	.wp-block-gallery.has-nested-images figure.wp-block-image img {
		max-width: 1200px !important;
	}
	.wp-block-gallery > .wp-block-image > img:hover {
		z-index: 99999;
  		width: 1200px!important;
		max-width: 1200px !important;
	}
	.wp-block-gallery > .wp-block-image:nth-of-type(3n+1) > img:hover {
	 	 /*margin-left: 20px;*/
	}
	.page-id-42 .wp-block-gallery > .wp-block-image:nth-of-type(3n+2) > img:hover {
	 	 margin-left: -408px;
	}
	.page-id-42 .wp-block-gallery > .wp-block-image:nth-of-type(3n+3) > img:hover {
	 	 margin-left: -815px;
	}
	.page-id-40 .wp-block-gallery > .wp-block-image:nth-of-type(2n+2) > img:hover {
	 	 margin-left: -612px;
	}
}
@media (min-width: 601px) and (max-width: 1240px) {
	.wp-block-gallery img:hover {
		z-index: 99999;
		max-width: 100% !important;
	}
	.page-id-42 .wp-block-gallery img:hover {
  		transform: scale(3);
	}
	.page-id-40 .wp-block-gallery img:hover {
  		transform: scale(2);
	}
	.page-id-42 .wp-block-gallery > .wp-block-image:nth-of-type(3n+1) > img:hover {
	 	 margin-left: calc(100vw / 3);
	}
	.page-id-42 .wp-block-gallery > .wp-block-image:nth-of-type(3n+3) > img:hover {
	 	 margin-left: calc(100vw / 3 * -1);
	}
	.page-id-40 .wp-block-gallery > .wp-block-image:nth-of-type(2n+1) > img:hover {
	 	 margin-left: calc(100vw * 0.23);
	}
	.page-id-40 .wp-block-gallery > .wp-block-image:nth-of-type(2n+2) > img:hover {
	 	 margin-left: calc(100vw * -0.26);
	}
}

/*-------  Co-Blocks Gallery ---------*/
/* Masonry */
@media only screen and (min-width: 1024px) {
  figure.wp-block-coblocks-gallery-masonry.masonry-grid {
    column-count: 2;
  }
}
/* brick */
@media (min-width: 601px) {
	li.coblocks-gallery--item {
  		width: 50%;
  		height: auto;
	}
  .wp-block-coblocks-gallery-offset .has-small-images img {
    /*max-height: initial;*/
    height: auto;
    width: 100%;
    object-fit: cover;
    max-height: 27vw;
  }
}
@media (max-width: 600px) {
	li.coblocks-gallery--item {
  		width: 100%;
  		height: auto;
	}
	.wp-block-coblocks-gallery-offset .has-small-images img {
    	height: auto;
		max-height: 100%;
	   width: 100%;
  	}
}

/*-----------------------------------*/
/*-------  Mitgliederbereich --------*/
/*-----------------------------------*/
.post-password-form {
  text-align: left;
}
.post-password-form p {
	float: left;
}
#pwbox-51 {
	margin-top: 20px;
  	margin-bottom: 20px;
  	max-width: 300px;
}

input[type="password"]
/*, input[type="search"], input[type="reset"], input[type="tel"], input[type="date"], select, textarea */
{
  border-radius: 0;
  box-shadow: none;
  color: #1e1e1e;
/*  border-color: #958b8b;*/
  background-color: #ffffff;
}

input[type="submit"] {
/*, .post-password-form input[type="submit"] {*/
	line-height: 1em;
  	font-size: 1rem;
	border-radius: 50px!important;
  	padding: 20px 40px!important;
}

.wp-block-file:not(.wp-element-button) {
  font-size: .9em;
}
.page-id-51 .entry-content > .wp-block-group {
	padding: 0;
}

/*------------------------------*/
/*-------  Schriften und Absätze -------------*/
/*------------------------------*/



h2 {
	color: #3372b5!important;
}
h3, .entry-content :where(h3) {
  font-size: 1rem;
}


/*------------------------------*/
/*-------  footer -------------*/
/*------------------------------*/
footer {
  padding: 0 65px;
}
.site-above-footer-wrap[data-section="section-above-footer-builder"] {
  background-color: #ffffff;
	min-height: auto;
}
.footer-widget-area p {
	margin-bottom: 0;
}

.ast-scroll-to-top-right {
  right: 20px;
  bottom: 20px;
}
#ast-scroll-top {
	width: 3em;
  	height: 3em;
  	line-height: 3;
  	border-radius: 0;
}
#ast-scroll-top .ast-icon.icon-arrow svg {
	width: 3em;
	height: 1.1em;
}
@media (max-width: 921px) {
  #ast-scroll-top .ast-icon.icon-arrow svg {
	width: 3em;
	height: 1.1em;
  }
}

