* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff8f0;
    color: #333;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #d4af37;
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #d4af37;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    text-decoration: none;
    color: #333; /* Standardfarbe Schwarz */
    font-weight: 500;
}

.nav-menu a:hover {
    color: #d4af37; /* Gold bei Hover */
    transition: color 0.3s ease; /* Optional: Sanfter Übergang */
}

.nav-menu a.active {
    color: #d4af37; /* Gold für aktiven Link */
    font-weight: bold; /* Optional: Hervorhebung durch Fettschrift */
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/image.jpg') bottom 10% center no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Leichteres Overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
    font-size: 48px;
}

.hero-content p {
    font-size: 24px;
    margin: 20px 0;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #d4af37;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    z-index: 1000;
    text-transform: uppercase; /* Grossschreibung */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    height: 40px; /* Feste Höhe für Konsistenz */
    line-height: 10px; /* Zentriert den Text vertikal */
}

/* Hover-Effekt für alle Buttons */
.cta-button:hover,
form button:hover,
#back-to-top:hover,
.contact-item:hover {
    background-color: #333; /* Dunkleres Schwarz beim Hover */
    transition: background-color 0.3s ease;
}

button, .cta-button, .contact-item {
    position: relative;
    z-index: 1; /* Ensures buttons stay below the header */
}

/* Sections */
.section {
    padding: 30px 20px;
    text-align: center;
}

.section h2 {
    margin-bottom: 20px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-item img {
    width: 100%;
    border-radius: 10px;
}

.product-item h3 {
    margin: 10px 0;
}

/* Styling für Tortenvorschau und Upload-Feld */
#order label {
    margin-top: 15px;
    display: block;
    text-align: left;
}

/* Optional: Wenn Sie den Text spezifizieren möchten, können Sie eine Klasse hinzufügen */
.cake-design-label {
    margin-top: 15px;
    display: block;
    text-align: left;
}

#example-cake, #custom-cake {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 5px 0;
    width: 100%;
}

#cake-preview {
    text-align: center;
}

#preview-image {
    border-radius: 5px;
    border: 1px solid #ddd;
    max-width: 200px;
}

/* Kontakt Section */
#contact {
    padding: 30px 20px;
    text-align: center;
    background-color: #fff8f0; /* Creme-Hintergrund für die gesamte Section */
}

#contact h2 {
    margin-bottom: 20px;
    color: #d4af37; /* Gold für Überschriften */
}

.contact-info {
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1;
}

.contact-item {
    background-color: #d4af37; /* Goldener Hintergrund */
    color: #fff; /* Weisser Text */
    padding: 10px 15px;
    border: none; /* Entferne Standard-Border */
    border-radius: 5px; /* Abgerundete Ecken wie Buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    cursor: pointer;
    z-index: 1;
    text-transform: uppercase; /* Grossschreibung */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Schatten wie Buttons */
    height: 40px; /* Feste Höhe für Konsistenz */
    line-height: 10px; /* Zentriert den Text vertikal */
}

.contact-item a {
    color: #fff;
    text-decoration: none;
    text-transform: none;
}

.icon {
    font-size: 18px;
}

/* Form */
form {
    max-width: 500px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1; /* Ensures forms stay below header */
}

#order-form input,
#order-form select,
#order-form textarea {
    margin-bottom: 15px; /* Ensures consistent spacing between fields */
}

#contact-form {
    gap: 15px;
}

form input, form select, form textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    padding: 10px;
    background-color: #d4af37;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    z-index: 1000;
    text-transform: uppercase; /* Grossschreibung */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    height: 40px; /* Feste Höhe für Konsistenz */
    line-height: 10px; /* Zentriert den Text vertikal */
}

/* Form Result  */
.message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    display: none; /* Hidden by default */
}

.message.loading {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    display: block;
    font-style: italic;
    padding: 10px;
    text-align: center;
}

.loader {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 3px solid #ccc;
    border-radius: 50%;
    border-top-color: #333;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block; /* Show on success */
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block; /* Show on error */
}

/* Adjust the reCAPTCHA badge position */
.grecaptcha-badge {
    bottom: 60px !important; /* Adjust this value based on the height of your BACK TO TOP button */
}

/* Back to Top Button */
#back-to-top {
    position: fixed; /* Keeps it on screen as user scrolls */
    bottom: 10px;
    right: 10px;
    padding: 8px 15px;
    background-color: #d4af37; 
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    transition: opacity 0.3s; /* Smooth hide/show */
    opacity: 0.9; /* Slightly transparent */
}

/* Goldener Strich nur für Back to Top Button */
#back-to-top::before {
    content: '';
    display: block;
    height: 2px;
    width: 20px;
    background-color: #fff; /* Goldener Strich */
    margin: 0 auto 5px;
}

/* Footer */
footer {
    padding: 20px;
    background-color: #fff;
    text-align: center;
}

.social-links a {
    margin: 0 10px;
    color: #d4af37;
    text-decoration: none;
}

#about {
    padding: 60px 20px;
    text-align: center;
    background-color: rgba(51, 51, 51, 0.7); /* Dunkler Hintergrund mit 70% Transparenz */
    color: #fff; /* Weisser Text */
}

#about h2 {
    margin-bottom: 20px;
    color: #d4af37; /* Gold für Überschriften bleibt erhalten */
}

#faq {
    padding: 60px 20px;
    text-align: center;
    background-color: rgba(51, 51, 51, 0.7); /* Dunkler Hintergrund mit 70% Transparenz */
    color: #fff; /* Weisser Text */
}

#faq h2 {
    margin-bottom: 20px;
    color: #d4af37; /* Gold für Überschriften bleibt erhalten */
}

#faq details summary {
    color: #fff; /* Weisser Text für die Summary-Texte in Details */
}

#faq details p {
    color: #fff; /* Weisser Text für die Paragraphs in Details */
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .nav-menu a:hover {
        color: #d4af37; /* Gold bei Hover auch im mobilen Menü */
    }

    .nav-menu a.active {
        color: #d4af37; /* Gold für aktiven Link auch im mobilen Menü */
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    #back-to-top, .cta-button, form button, .contact-item {
        bottom: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 12px;
    }
}