/*
Theme Name: Rezepte
Theme URI: jacor.de
Description: Theme für Rezepte
Author: jacor.de
Author URI: jacor.de
Template: Divi
Version: v1.1
*/

/*---------- CTAs ----------*/

.eh_button_so {
	font-size: 18px;
	line-height: 18px;
	color: #1d1d1d;
	background-color: #ffffff; /* explizit weiß, falls transparent bisher */
	border: 2px solid #1d1d1d;
	padding: 15px 20px;
	display: inline-block;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.2s ease;
}

.eh_button_so:hover {
	background-color: #f9f9f9; /* leichter Hintergrund-Shift beim Hover */
}

.eh_button_so::before {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 80%;
	height: 100%;
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(0, 0, 0, 0.04) 50%, /* sehr dezenter dunkler Glanz */
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-25deg);
}

.eh_button_so:hover::before {
	animation: shine_so 0.8s ease forwards;
}

@keyframes shine_so {
	100% {
		left: 125%;
	}
}

.eh_button_so_invert {
	font-size: 18px;
	line-height: 18px;
	color: #ffffff;
	border: 2px solid #ffffff;
	padding: 15px 20px;
	display: inline-block;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.2s ease;
}

.eh_button_so_invert:hover {
	background-color:rgba(255,255,255,.06);
}

.eh_button_so_invert::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 80%;
	height: 100%;
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.2) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-25deg);
}

.eh_button_so_invert:hover::before {
	animation: shine_so_invert 0.8s ease forwards;
}

@keyframes shine_so_invert {
	100% {
		left: 125%;
	}
}


.eh_button_fo {
	font-size: 18px;
	line-height: 18px;
	color: #ffffff;
	background-color: #9B2322;
	border: 1px solid #ffffff;
	padding: 15px 20px;
	display: inline-block;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.2s ease;
}

.eh_button_fo:hover {
	background-color:#a22c2b;
}

.eh_button_fo::before {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 80%;
	height: 100%;
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.1) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-25deg);
}

.eh_button_fo:hover::before {
	animation: shine 0.8s ease forwards;
}

@keyframes shine {
	100% {
		left: 125%;
	}
}

/*---------- ENDE CTAs ----------*/

/*---------- FULLSCREEN MOBILE MENU ----------*/

@media (max-width: 1250px) {
	/* Overlay + Grundzustand (geschlossen) */
	#mobile_menu1.et_mobile_menu {
		position: fixed;
		inset: 0;
		width: 100vw;
		height: 100vh;
		z-index: 99999;
		display: flex !important;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 6px;
		padding: 24px;
		margin: 0;
		overflow-y: auto;
		opacity: 0;
		transform: translateY(-16px);
		visibility: hidden;
		pointer-events: none;
		transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
		background:
		linear-gradient(to bottom, rgba(255,255,255,1) 0 10vh, rgba(255,255,255,.96) 10vh 100%),
		url("https://eichenhaus.jacor.dev/wp-content/uploads/2025/08/eichenhaus_eiche_bg_black_v2.svg");
		background-repeat: no-repeat;
		background-position: center;   /* leicht nach unten schieben */
		background-size: auto 140%;         /* über Höhe skalieren + Overscan */
	}

	/* Geöffnet (sichtbar) */
	.opened #mobile_menu1.et_mobile_menu,
	#mobile_menu1.et_mobile_menu[style*="display: block"] {
		opacity: 1;
		transform: translateY(0);
		visibility: visible;
		pointer-events: auto;
		transition: opacity .4s ease, transform .4s ease, visibility 0s;
	}

	/* Menüeinträge: Basis + Stagger */
	#mobile_menu1.et_mobile_menu li { 
		list-style: none; 
		margin: 0; 
		border: 0; 
		text-align: center;
		opacity: 0;
		transform: translateY(12px);
		transition: opacity .7s ease, transform .7s ease;
	}

	#mobile_menu1.et_mobile_menu li a:before,
	#mobile_menu1.et_mobile_menu li:before {
		display: none !important;
		content: none !important;
	}

	#mobile_menu1.et_mobile_menu li a {
		display: inline-block;
		padding: 14px 8px;
		font-size: 22px;
		line-height: 1.3;
		color: #1d1d1d;
		text-decoration: none;
		border: 0 !important;
	}

	#mobile_menu1.et_mobile_menu li a:hover,
	#mobile_menu1.et_mobile_menu li.current-menu-item > a {
		color: #9B2322;
	}

	.opened #mobile_menu1.et_mobile_menu li,
	#mobile_menu1.et_mobile_menu[style*="display: block"] li { opacity: 1; transform: translateY(0); }
	.opened #mobile_menu1.et_mobile_menu li:nth-child(1),
	#mobile_menu1.et_mobile_menu[style*="display: block"] li:nth-child(1) { transition-delay: .15s; }
	.opened #mobile_menu1.et_mobile_menu li:nth-child(2),
	#mobile_menu1.et_mobile_menu[style*="display: block"] li:nth-child(2) { transition-delay: .30s; }
	.opened #mobile_menu1.et_mobile_menu li:nth-child(3),
	#mobile_menu1.et_mobile_menu[style*="display: block"] li:nth-child(3) { transition-delay: .45s; }
	.opened #mobile_menu1.et_mobile_menu li:nth-child(4),
	#mobile_menu1.et_mobile_menu[style*="display: block"] li:nth-child(4) { transition-delay: .60s; }
	.opened #mobile_menu1.et_mobile_menu li:nth-child(5),
	#mobile_menu1.et_mobile_menu[style*="display: block"] li:nth-child(5) { transition-delay: .75s; }
	.opened #mobile_menu1.et_mobile_menu li:nth-child(6),
	#mobile_menu1.et_mobile_menu[style*="display: block"] li:nth-child(6) { transition-delay: .90s; }
	.opened #mobile_menu1.et_mobile_menu li:nth-child(7),
	#mobile_menu1.et_mobile_menu[style*="display: block"] li:nth-child(7) { transition-delay: 1.05s; }

	.et_pb_menu .mobile_menu_bar,
	.mobile_menu_bar {
		position: fixed;
		top: 2px;
		right: 40px;
		z-index: 100001;
		pointer-events: auto;
	}

	.mobile_menu_bar:before {
		content: "\2630";
		font-size: 32px;
		line-height: 1;
		color: #1d1d1d;
		transition: transform .2s ease, opacity .2s ease;
	}

	.opened .mobile_menu_bar:before {
		content: "\00d7";
		font-size: 32px;
		padding-right: 5px;
	}

	.opened header, 
	.opened .et-l--header { pointer-events: none; }
	.opened .mobile_menu_bar { pointer-events: auto; }
}

/* Feintuning für kleinere Breiten – etwas mehr Zoom und weiter nach unten schieben */
@media (max-width: 900px) {
	.opened #mobile_menu1.et_mobile_menu,
	#mobile_menu1.et_mobile_menu { background-size: auto 160%; background-position: center; }
}
@media (max-width: 600px) {
	.opened #mobile_menu1.et_mobile_menu,
	#mobile_menu1.et_mobile_menu { background-size: auto 180%; background-position: center; }
}

/* Motion-Reduce */
@media (prefers-reduced-motion: reduce) {
	#mobile_menu1.et_mobile_menu,
	.opened #mobile_menu1.et_mobile_menu,
	#mobile_menu1.et_mobile_menu li { transition: none !important; }
}

.et_mobile_menu {
	border-top:0px !important;
}

/*---------- ENDE FULLSCREEN MOBILE MENU ----------*/

/*---------- TYPO ----------*/


@media(max-width:767px) {

	h1{
		font-size:40px !important;
	}

	h2{
		font-size:30px !important;
	}

	.et_pb_text_inner p {
		font-size:16px;
	}

	h3 {
		font-size:20px !important;
	}

}


/*---------- ENDE TYPO ----------*/

@media (max-width: 1250px) {
  :root { --eh-header-h: 53px; }

  header.et-l--header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
  }

  #page-container,
  #et-main-area,
  .et-l--body {
    padding-top: var(--eh-header-h);
  }
}


.eh_mainmenu .et_pb_menu .et_pb_menu__wrap {
	justify-content: flex-end;
}

.eh_mainmenu .et_pb_menu--with-logo .et_pb_menu__menu>nav>ul>li>a {
	padding:20px 0;
}

.et_pb_menu_0_tb_header .et_pb_menu_inner_container>.et_pb_menu__logo-wrap .et_pb_menu__logo img, .et_pb_menu_0_tb_header .et_pb_menu__logo-slot .et_pb_menu__logo-wrap img {
	margin-bottom:3px;
}

.eh_footer .eh_footer_link:before {
	content:"";
	background-image:url("https://eichenhaus.jacor.dev/wp-content/uploads/2025/08/eh_icon_arrow_links.svg");
	background-size: cover;
	width:10px;
	height:10px;
	display:block;
	position: absolute;
	margin-top:6px;
}

.eh_footer .eh_footer_link {
	padding-left:15px;
	color:#1d1d1d;
}

.eh_footer .eh_subfooter a {
	padding-left:20px;
	color:#1d1d1d;
}

.eh_footer .eh_subfooter a:first-child {
	padding-left:0px;
}

.eh_eiche_rechts {
	overflow: hidden;
}

.eh_eiche_rechts:before {
	content:"";
	background-image:url("https://eichenhaus.jacor.dev/wp-content/uploads/2025/08/eichenhaus_eiche_bg.svg");
	background-size: cover;
	width:800px;
	height:calc(100% + 40px);
	right:-40px;
	top:-40px;
	display:block;
	position: absolute;
}

.et_pb_menu_0_tb_header .mobile_nav .mobile_menu_bar:before, .et_pb_menu_0_tb_header .et_pb_menu__icon.et_pb_menu__search-button, .et_pb_menu_0_tb_header .et_pb_menu__icon.et_pb_menu__close-search-button, .et_pb_menu_0_tb_header .et_pb_menu__icon.et_pb_menu__cart-button {
	color:#1d1d1d !important;
}

#subhead {
	background-color:#1d1d1d;
}

@media (max-width: 1250px) {
	.et_pb_menu__menu {
		display: none !important;
	}
	.eh_topbar {
		display:none;
	}
	.et_mobile_nav_menu {
		display: block !important;
	}
	.et_pb_row_0_tb_header.et_pb_row.eh_mainmenu {
		padding-top:15px !important;
		padding-bottom:15px !important;
	}
	.et_pb_menu_0_tb_header .et_pb_menu_inner_container>.et_pb_menu__logo-wrap .et_pb_menu__logo img, .et_pb_menu_0_tb_header .et_pb_menu__logo-slot .et_pb_menu__logo-wrap img {
		margin-bottom:0px;
	}
}

@media(max-width:980px) {
	.eh_projects .et_pb_row .et_pb_column_1_2:first-child {
		margin-bottom:0px;
	}
	.eh_projects .et_pb_row .et_pb_column_1_2 {
		box-shadow: none;
		padding:0px;
		background: transparent;
	}
	.eh_projects .et_pb_row .et_pb_column_1_2 .et_pb_text {
		margin-bottom:0px;
		padding:20px !important;
		margin-left:20px;
		margin-right:20px;
		margin-top:-80px;
	}
	.eh_projects .et_pb_row .et_pb_column_1_2 .et_pb_code {
		padding-bottom:20px !important;
		margin-left:20px;
		margin-right:20px;
	}
	.eh_projects .et_pb_row .et_pb_column_1_2 .et_pb_text, .eh_projects .et_pb_row .et_pb_column_1_2 .et_pb_code {
		background-color: #ffffff;
	}
	.et_pb_row {
		width:85%;
	}
	.eh_eiche_rechts:before {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  #subhead {
  	background: linear-gradient(to bottom, 
              #1d1d1d 0%,
              #1d1d1d 70%,
              #ffffff 70%,
              #ffffff 100%);
	}
}












