/*
Theme Name: Corallo Restaurant
Author: Dein Name
Description: Luxury Restaurant Theme with persistent background and SEO.
Version: 1.2
*/

body {
    margin: 0;
    color: #fff;
    font-family: 'Playfair Display', serif;
    scroll-behavior: smooth;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Bild bleibt statisch beim Scrollen */
    background-color: #0b0b0b;
}

header {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-sizing: border-box;
}

nav a {
    color: #d4af37;
    margin-left: 20px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    
    /* WICHTIG: Startzustand unsichtbar */
    opacity: 0; 
    transition: opacity 1.2s ease-in-out; /* Weicher Einblende-Effekt */
}

/* Diese Klasse wird erst per JS vergeben, wenn das Bild da ist */
.hero.loaded {
    opacity: 1;
}

.overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 60px;
    border: 1px solid #d4af37;
    text-align: center;
}

/* Sektionen gleiten transparent über das Hintergrundbild */
section {
    padding: 100px 20px;
    background: rgba(0, 0, 0, 0.6); /* Transparenter Schleier */
 /*   backdrop-filter: blur(8px); /* Optionaler Weichzeichner-Effekt */
    opacity: 0;
    transform: translateY(40px);
    transition: 1s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    text-align: center;
    color: #d4af37;
    font-size: 2.5rem;
}

.sticky-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #d4af37;
    color: #000;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    z-index: 999;
}
