/* Reset and Global Styles */
:root {
–menu-border-color: #3c3a35;
–menu-text-color: #ffffff90;
–menu-text-hover: #fff;
–menu-bg-dark: #1a1a1a;
–menu-bg-overlay: rgba(0, 0, 0, 0.85);
–menu-border-light: #ffffff30;
–transition-normal: all 0.3s ease;
–toggle-width: 40px;
–toggle-padding: 60px;
}
body {
overflow-x: hidden;
}
body.no-scroll {
overflow: hidden;
}
*,
::before,
::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Container styles */
.BlockMenu-Container {
width: 100%;
position: relative;
z-index: 900;
height: auto;
margin: 0;
padding: 0;
}
/* Burger Menu Styles */
.burger-toggle {
position: absolute;
top: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 901;
width: var(–toggle-width);
height: 40px;
}
.burger-button {
background-color: #000;
border: 1px solid var(–menu-border-light);
cursor: pointer;
padding: 10px;
width: var(–toggle-width);
height: 40px;
display: flex;
flex-direction: column;
justify-content: space-between;
border-radius: 5px;
position: relative;
z-index: 902;
}
.burger-button span {
display: block;
width: 100%;
height: 2px;
background-color: #fff;
transition: var(–transition-normal);
}
.burger-button.active span:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}
.burger-button.active span:nth-child(2) {
opacity: 0;
}
.burger-button.active span:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}
/* Navigation Menu Wrapper */
.edge-menu-wrapper {
width: 100%;
color: var(–menu-border-light);
font-family: ‘Cormorant’, serif;
font-size: 1.3rem;
opacity: 0;
visibility: hidden;
transition: opacity 0.33s ease;
position: absolute;
top: 0;
left: 0;
z-index: 899;
pointer-events: none;
height: 0;
overflow: visible;
}
.edge-menu-wrapper.active {
opacity: 1;
visibility: visible;
pointer-events: auto;
height: auto;
display: flex;
justify-content: center;
}
.edge-menu-buttons {
background-color: var(–menu-bg-overlay);
background-image: url(‘https://edges.teaparty-online.com/wp-content/uploads/menu-bg-picture.jpg’);
background-size: cover;
border: 1px solid var(–menu-border-color);
border-top: 0;
border-radius: 0 0 16px 16px;
padding: 0 40px 20px;
display: flex;
justify-content: center;
align-items: center;
}
/* Menu Items */
.menu-item {
opacity: 0;
transition: var(–transition-normal);
}
.edge-menu-wrapper.active .menu-item {
opacity: 1;
transform: translateX(0) translateY(0);
}
.edge-menu-buttons a {
background-color: transparent;
border: 1px solid var(–menu-border-light);
border-radius: 5px;
color: var(–menu-text-color);
cursor: pointer;
display: flex;
align-items: center;
text-decoration: none;
transition: var(–transition-normal);
position: relative;
}
.edge-menu-buttons a img {
object-fit: contain;
}
.edge-menu-buttons a:hover,
.edge-menu-buttons a:focus-visible {
color: var(–menu-text-hover);
background-color: var(–menu-bg-dark);
z-index: 10;
}
/* DESKTOP STYLES (tablets and larger) */
@media (min-width: 768px) {
.edge-menu-buttons {
max-width: 900px;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.9);
margin: 0 auto;
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
padding: 0 40px 20px;
z-index: 900;
border-radius: 0 0 16px 16px;
}
/* Menu sections with spacing for toggle */
.menu-sections-container {
display: flex;
width: 100%;
justify-content: center;
align-items: center;
}
.menu-left,
.menu-right {
display: flex;
gap: 2rem;
align-items: center;
padding-top: 20px;
}
/* Critical CSS for proper toggle spacing */
.menu-left {
margin-right: var(–toggle-padding);
}
.menu-right {
margin-left: var(–toggle-padding);
}
/* Initial transformations for animation */
.menu-item {
transform: translateX(-50px);
}
.menu-right .menu-item {
transform: translateX(50px);
}
/* Menu item styling */
.edge-menu-buttons a {
padding: 1rem;
width: 90px;
height: 90px;
flex-direction: column;
justify-content: center;
}
.edge-menu-buttons a img {
width: 35px;
height: 35px;
}
.edge-menu-buttons a p {
position: absolute;
width: 100%;
font-size: 1.3rem;
opacity: 0;
left: 0;
top: 0.5rem;
padding: 0.3rem;
text-align: center;
transition: all 150ms ease-in-out 0ms;
transform: translateY(-10px);
}
.edge-menu-buttons a:hover p {
opacity: 1;
transform: translateY(0);
transition: all 300ms ease-in-out 150ms;
}
.edge-menu-buttons a:hover {
transform: scale(1.15);
}
.edge-menu-buttons:has(a:hover) a:not(:hover),
.edge-menu-buttons:has(a:focus-visible) a:not(:focus-visible) {
opacity: 50%;
scale: 85%;
z-index: -10;
}
/* Sequential animation delays */
.menu-item:nth-child(1) { transition-delay: 0.05s; }
.menu-item:nth-child(2) { transition-delay: 0.1s; }
.menu-item:nth-child(3) { transition-delay: 0.15s; }
}
/* MOBILE STYLES */
@media (max-width: 767px) {
.burger-toggle {
position: fixed;
top: 100px;
left: 50%;
transform: translateX(-50%);
z-index: 998;
}
.edge-menu-wrapper.active::before {
content: “”;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 170px;
background-color: var(–menu-bg-dark);
background-image: url(‘https://edges.teaparty-online.com/wp-content/uploads/menu-bg-picture.jpg’);
background-size: cover;
z-index: -1;
}
.edge-menu-wrapper.active {
z-index: 997;
}
.edge-menu-buttons {
position: fixed;
top: 170px;
left: 0;
width: 100%;
height: calc(100vh – 170px);
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
padding: 20px;
overflow-y: auto;
z-index: 997;
}
.menu-left,
.menu-right {
display: flex;
flex-direction: column;
width: 100%;
max-width: 300px;
margin: 0;
gap: 1rem;
}
.menu-left {
margin-bottom: 2rem;
}
.menu-item {
transform: translateY(20px);
width: 100%;
}
.edge-menu-buttons a {
background-color: rgba(0, 0, 0, 0.6);
border-radius: 8px;
padding: 18px 15px;
flex-direction: row;
width: 100%;
height: auto;
}
.edge-menu-buttons a img {
width: 35px;
height: 35px;
margin-right: 20px;
}
.edge-menu-buttons a p {
position: static;
opacity: 1;
font-size: 1.6rem;
font-weight: 500;
width: auto;
}
.edge-menu-buttons a:hover {
transform: scale(1.05);
background-color: rgba(50, 50, 50, 0.8);
}
.edge-menu-buttons:has(a:hover) a:not(:hover),
.edge-menu-buttons:has(a:focus-visible) a:not(:focus-visible) {
opacity: 0.7;
scale: 1;
}
/* Sequential animation delays */
.menu-item:nth-child(1) { transition-delay: 0.05s; }
.menu-item:nth-child(2) { transition-delay: 0.1s; }
.menu-item:nth-child(3) { transition-delay: 0.15s; }
.menu-item:nth-child(4) { transition-delay: 0.2s; }
.menu-item:nth-child(5) { transition-delay: 0.25s; }
.menu-item:nth-child(6) { transition-delay: 0.3s; }
}
/* Wenn man diesen Code löscht, dann werden keine Videos mehr angezeigt*/
.bricks-video-wrapper:not(.popup-video-wrapper),
.bricks-video-wrapper iframe:not(.popup-video-wrapper iframe),
video:not(.popup-video),
iframe:not(.popup-iframe),
.wp-video:not(.popup-wp-video),
.wp-video-shortcode:not(.popup-wp-video-shortcode),
.mejs-container:not(.popup-mejs-container) {
position: relative;
z-index: 10;
}
/* Dieser Code bestimmt die Höhe der Videos auf der Video-Seite*/
iframe {
width: 100%;
min-height: 300px;
}
document.addEventListener(‘DOMContentLoaded’, function() {
const burgerButton = document.querySelector(‘.burger-button’);
const edgeMenuWrapper = document.querySelector(‘.edge-menu-wrapper’);
const body = document.body;
if (burgerButton && edgeMenuWrapper) {
burgerButton.addEventListener(‘click’, function(e) {
e.stopPropagation();
burgerButton.classList.toggle(‘active’);
edgeMenuWrapper.classList.toggle(‘active’);
// Toggle both classes for consistency
body.classList.toggle(‘no-scroll’);
body.classList.toggle(‘menu-is-active’);
});
}
document.addEventListener(‘click’, function(event) {
const menu = document.querySelector(‘.edge-menu-wrapper’);
const burger = document.querySelector(‘.burger-button’);
if (menu && burger && !menu.contains(event.target) && !burger.contains(event.target) && menu.classList.contains(‘active’)) {
menu.classList.remove(‘active’);
burger.classList.remove(‘active’);
body.classList.remove(‘no-scroll’);
body.classList.remove(‘menu-is-active’);
}
});
const menuLinks = document.querySelectorAll(‘.menu-item a’);
menuLinks.forEach(link => {
link.addEventListener(‘click’, function() {
const edgeMenuWrapper = document.querySelector(‘.edge-menu-wrapper’);
const burgerButton = document.querySelector(‘.burger-button’);
if (edgeMenuWrapper && burgerButton) {
setTimeout(function() {
edgeMenuWrapper.classList.remove(‘active’);
burgerButton.classList.remove(‘active’);
body.classList.remove(‘no-scroll’);
body.classList.remove(‘menu-is-active’);
}, 150);
}
});
});
});
