/* Local Font Definitions */
@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/Cinzel-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/Cinzel-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/Cinzel-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/Cinzel-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/Cinzel-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel';
    src: url('../fonts/Cinzel-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cinzel', 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
    letter-spacing: 0.03em;
    text-rendering: optimizeLegibility;
}

body {
    background-color: #121212;
    color: #f5f5f5;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    position: relative;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2a2a2a 0%, #121212 100%);
    z-index: -2;
}

.bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.2;
    /* Reduzierte Anzahl von Bubbles für bessere Performance */
    pointer-events: none; /* Verhindert Interaktion mit Bubbles */
}

.bubble {
    position: absolute;
    bottom: -50px;
    width: 20px;
    height: 20px;
    background: #f5f5f5;
    border-radius: 50%;
    opacity: 0.4;
    animation: rise 10s infinite ease-in;
    will-change: transform; /* Optimierung für Animation */
}

.bubble:nth-child(1) {
    left: 10%;
    width: 15px;
    height: 15px;
    animation-duration: 12s;
    animation-delay: 0.5s;
}

.bubble:nth-child(2) {
    left: 30%;
    width: 10px;
    height: 10px;
    animation-duration: 10s;
    animation-delay: 2s;
}

.bubble:nth-child(3) {
    left: 50%;
    width: 8px;
    height: 8px;
    animation-duration: 13s;
    animation-delay: 1s;
}

.bubble:nth-child(4) {
    left: 70%;
    width: 12px;
    height: 12px;
    animation-duration: 9s;
    animation-delay: 3s;
}

.bubble:nth-child(5) {
    left: 90%;
    width: 10px;
    height: 10px;
    animation-duration: 11s;
    animation-delay: 1.5s;
}

@keyframes rise {
    0% {
        bottom: -50px;
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
    100% {
        bottom: 110%;
        transform: translateX(-20px);
    }
}

/* Deaktiviere Bubbles-Animation bei geöffneten Modals für bessere Performance */
body:has(.modal.active) .bubble {
    animation-play-state: paused;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    text-align: center;
    padding: 1rem;
    padding-bottom: 2rem;
}

.logo {
    width: 270px;
    height: 365px;
    margin-bottom: 2rem;
    position: relative;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
    will-change: opacity, transform; /* Optimierung für Animation */
}

.logo svg, .logo img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(217, 166, 85, 0.5)); /* Leicht reduzierter Schatten */
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: #d9a655;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.5s;
    will-change: opacity, transform; /* Optimierung für Animation */
}

.tagline {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 1s;
    will-change: opacity, transform; /* Optimierung für Animation */
}

.divider {
    width: 80px;
    height: 3px;
    background-color: #d9a655;
    margin: 1.5rem 0;
    opacity: 0;
    animation: expandWidth 1.5s ease forwards 1.2s;
    will-change: opacity, width; /* Optimierung für Animation */
}

.coming-soon {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 1.5s;
    will-change: opacity, transform; /* Optimierung für Animation */
}

.social-links {
    display: flex;
    margin-top: 2rem;
    gap: 1.2rem;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 2s;
    align-items: center;
    justify-content: center;
    will-change: opacity, transform; /* Optimierung für Animation */
}

.social-links a {
    color: #f5f5f5;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
}

.social-links a:hover {
    color: #d9a655;
    transform: scale(1.2);
}

/* Vertical divider for social links */
.social-divider {
    width: 1px;
    height: 28px;
    background-color: rgba(245, 245, 245, 0.4);
    margin: 0 1rem;
    flex-shrink: 0;
}

.privacy {
    position: relative;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(245, 245, 245, 0.5);
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 2.2s;
    margin-top: 1rem;
}

.privacy a {
    color: rgba(245, 245, 245, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.privacy a:hover {
    color: #d9a655;
}

/* Mobile Navigation Bar */
.mobile-nav {
    display: none; /* Wird auf Mobilgeräten eingeblendet */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    border-top: 1px solid rgba(217, 166, 85, 0.3);
    z-index: 1000;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 2.3s;
}

.mobile-nav-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #f5f5f5;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-nav-button:hover {
    background-color: rgba(217, 166, 85, 0.2);
}

.mobile-nav-button svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-button span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Top Buttons Styles */
.top-button {
    position: relative;
    z-index: 1000;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    color: #121212;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: fit-content;
    background-color: transparent;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.top-button:last-child {
    border-right: none;
}

.top-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.top-button svg {
    width: 20px;
    height: 20px;
}

/* Top Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(217, 166, 85, 0.95);
    display: flex;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 2.3s;
}

.top-nav-buttons {
    display: flex;
    justify-content: center;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 80px;
    }
}

/* Beer of the Month specific styles */
.beer-facts {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.beer-fact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.fact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(217, 166, 85, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d9a655;
}

.fact-text {
    font-weight: 600;
    color: rgba(245, 245, 245, 0.9);
}

/* Animated Beer Glass - Completely Redesigned */
.animated-beer-container {
    width: 100%;
    max-width: 300px;
    height: 350px;
    margin: 2rem auto;
    position: relative;
    perspective: 1000px;
}

/* Main Beer Glass */
.beer-glass {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 300px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 5px 5px 30px 30px;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform-style: preserve-3d;
    animation: glass-shine 8s infinite;
}

/* Glass shine effect */
@keyframes glass-shine {
    0%, 100% { 
        box-shadow: 
            0 0 0 2px rgba(255, 255, 255, 0.1),
            0 10px 30px rgba(0, 0, 0, 0.4),
            inset 20px 0 50px rgba(255, 255, 255, 0.1); 
    }
    50% { 
        box-shadow: 
            0 0 0 2px rgba(255, 255, 255, 0.1),
            0 10px 30px rgba(0, 0, 0, 0.4),
            inset -20px 0 50px rgba(255, 255, 255, 0.1); 
    }
}

/* Beer liquid */
.beer-liquid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90%; /* Increased from 75% to 90% to fill more of the glass */
    background: linear-gradient(to right, 
        rgba(217, 166, 85, 0.95), 
        rgba(217, 166, 85, 0.85),
        rgba(217, 166, 85, 0.95));
    border-radius: 0 0 25px 25px;
    overflow: hidden;
    animation: beer-wobble 5s ease-in-out infinite;
    transform-origin: center bottom;
}

/* Beer wobble animation */
@keyframes beer-wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(0.5deg); }
    75% { transform: rotate(-0.5deg); }
}

/* Beer Glass Handle */
.beer-handle {
    position: absolute;
    top: 25%;
    right: -31px; /* Changed from -45px to -18px to connect directly to the glass */
    width: 70px;
    height: 140px;
    border: 18px solid rgba(255, 255, 255, 0.15);
    border-left: none;
    border-radius: 0 70px 70px 0;
    z-index: 1;
    box-shadow: 
        inset 0 5px 10px rgba(0, 0, 0, 0.2),
        inset 0 -5px 10px rgba(255, 255, 255, 0.1),
        5px 0 15px rgba(0, 0, 0, 0.1);
}

/* Beer Foam */
.beer-foam {
    position: absolute;
    top: 10%; /* Changed from 25% to 10% to position at the top of the glass */
    left: 0;
    width: 100%;
    height: 50px; /* Increased from 40px to 50px for more foam */
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.95), 
        rgba(255, 255, 255, 0.7));
    border-radius: 2px;
    z-index: 2;
    overflow: hidden;
}

/* Foam bubbles */
.beer-foam::before,
.beer-foam::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: foam-bubble 3s ease-in-out infinite alternate;
}

.beer-foam::before {
    width: 50px;
    height: 25px;
    top: -10px;
    left: 15%;
    animation-delay: 0.5s;
}

.beer-foam::after {
    width: 40px;
    height: 20px;
    top: -8px;
    left: 55%;
    animation-delay: 1.5s;
}

/* Additional foam bubbles */
.beer-foam-bubble {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: foam-bubble 3s ease-in-out infinite alternate;
}

.beer-foam-bubble:nth-child(1) {
    width: 35px;
    height: 18px;
    top: -7px;
    left: 35%;
    animation-delay: 1s;
}

.beer-foam-bubble:nth-child(2) {
    width: 30px;
    height: 15px;
    top: -5px;
    left: 75%;
    animation-delay: 2s;
}

@keyframes foam-bubble {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-3px) scale(1.05); }
}

/* Beer Bubbles Container */
.beer-bubbles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Individual Bubbles */
.beer-bubble {
    position: absolute;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.4) 60%,
        rgba(255, 255, 255, 0.1)
    );
    border-radius: 50%;
    animation: beer-bubble-rise ease-in infinite;
    will-change: transform;
}

.beer-bubble:nth-child(1) {
    width: 12px;
    height: 12px;
    left: 20%;
    animation-duration: 3s;
    animation-delay: 0.2s;
}

.beer-bubble:nth-child(2) {
    width: 8px;
    height: 8px;
    left: 40%;
    animation-duration: 3.5s;
    animation-delay: 1s;
}

.beer-bubble:nth-child(3) {
    width: 10px;
    height: 10px;
    left: 60%;
    animation-duration: 2.8s;
    animation-delay: 0.5s;
}

.beer-bubble:nth-child(4) {
    width: 6px;
    height: 6px;
    left: 80%;
    animation-duration: 4s;
    animation-delay: 1.5s;
}

/* Additional bubbles for more activity */
.beer-bubble:nth-child(5) {
    width: 9px;
    height: 9px;
    left: 30%;
    animation-duration: 3.2s;
    animation-delay: 0.7s;
}

.beer-bubble:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 70%;
    animation-duration: 3.7s;
    animation-delay: 1.2s;
}

.beer-bubble:nth-child(7) {
    width: 5px;
    height: 5px;
    left: 50%;
    animation-duration: 2.5s;
    animation-delay: 0.3s;
}

@keyframes beer-bubble-rise {
    0% {
        bottom: 0;
        opacity: 0;
        transform: translateX(0) scale(0.8);
    }
    5% {
        opacity: 0.8;
        transform: translateX(0) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateX(5px) scale(1.05);
    }
    75% {
        opacity: 0.6;
        transform: translateX(-5px) scale(1);
    }
    100% {
        bottom: 75%;
        opacity: 0;
        transform: translateX(0) scale(0.8);
    }
}

/* Beer Name */
.beer-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #121212;
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center;
    width: 100%;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    z-index: 4;
    letter-spacing: 1px;
}

/* Reflection on glass */
.beer-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    z-index: 5;
    pointer-events: none;
}

/* Make sure animations run */
.beer-bubble, .beer-foam, .beer-liquid {
    animation-play-state: running !important;
}

.beer-of-month-image {
    display: none; /* Hide the static image */
}

.beer-description {
    text-align: center;
    line-height: 1.6;
    margin: 1.5rem 0;
    color: rgba(245, 245, 245, 0.9);
}
