    /* Color Variables */
:root {
    --primary-green: #2E4A3D; /* Forest Green */
    --accent-gold: #C5A059;   /* Muted Gold */
    --text-dark: #333;
    --bg-light: #F9F5EE;      /* Off-white */
}




    /* Base Reset */

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Cookie', serif;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}





    /* Login Screen */

.login-box {
    background-color: #ffffff;
    border: 1.5px solid var(--accent-gold);
    border-radius: 7px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
    margin: auto;
    margin-top: 50px;
    width: 400px;
    align-items: center;
    text-align: center;
    }

/* Mobile Styling */
@media (max-width: 768px) {
    .login-box {
        width: 80%;
    }
}

input[type="password"], textarea {
    width: 50%;
    padding: 6px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Essential for width: 100% */
    margin: 10px 0px;
    }

.wrong-pw {
    margin:20px;
    text-align: center;
    color: red;
}



    /* Navigation Bar */

.navbar {
    background-color: var(--primary-green);
    border-bottom: 3px solid var(--accent-gold);
    padding: 0.6rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    position: sticky;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%
}

.nav-logo {
    font-family: 'Cookie', serif;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 1.7rem;
    letter-spacing: 3px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.nav-links a:visited {
    color: white;
}

.menu-toggle {           /* Hide Hamburger by default (Desktop) */
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    height: 3px;
    width: 25px;
    background: var(--accent-gold);
    margin-bottom: 4px;
    border-radius: 2px;
}

/* Mobile Styling */
@media (max-width: 768px) {

    .nav-logo {
        font-size: 1.5rem;
        letter-spacing: 2.8px;
    }

    .navbar {
        padding-top: 0.7rem;
        padding-bottom: 0.2rem;
        }

    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-links {
        display: none; /* Hide links initially */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary-green);
        gap: 5px;
        padding: 1rem 0;
        text-align: center;
        border-top: 3px solid var(--accent-gold);
        border-bottom: 3px solid var(--accent-gold);
    }

    /* When the "active" class is added via JS */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        display: block;
        margin: 0;
        padding: 8px 0;
    }

}

.ticker {
    display: none;
}


    /* Hero Section */

.hero {
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url('bg_1.jpg');     /* insert linear gradient if image is too bright!!! /*
/*     background-color: var(--primary-green); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 80px 20px;
    padding-top: 50px;
    border-bottom: 3px solid var(--accent-gold);
}

.hero h1 {
    color: var(--accent-gold);
    text-shadow: 0px 0px 12px black;
    font-size: 9rem;
    letter-spacing: 1.3px;
    margin: 0;
}

.date {
    font-size: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--primary-green);
    margin-top: 5px;
    margin-bottom: 10px;
}

.location {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--primary-green);
    margin-top: 6px;
}

/* Mobile adjustments for the Hero text */
@media (max-width: 768px) {

/*    .hero {
        padding: 50px 20px;
        padding-top: 10px;*/

    .hero h1 {
        font-size: 7rem;    /* Decreases font size (was 4rem) */
        line-height: 1;     /* Tightens the gap between lines */
        margin-bottom: 10px;  /* Adds a little space before the date */
        padding: 0 20px;      /* Prevents text from touching the screen edges */
    }

    .date {
        font-size: 1.3rem;
    }

    .location {
        font-size: 1.1rem;
    }

}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

.hero .btn {
    background-color: var(--accent-gold);
    color: white;
    margin-top: 30px;
    border-radius: 7px;
}

.btn:hover {
    opacity: 0.9;
}




    /* Sections */

section {
    padding: 30px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

h2 {
    font-size: 3rem;
    letter-spacing: 1.5px;
    line-height: 1.1;
}

h3 {
    font-size: 2rem;
    letter-spacing: 1.2px;
    line-height: 1.1;
    margin-top: 50px;
}

.main a {
    color: #576e63;
}

.main a:visited {
    color: var(--primary-green);
}

del {
    text-decoration: line-through;
    text-decoration-color: currentcolor;
}

.divider {
    height: 3px;   /* height reduced below to resolve scaling issues... */
        transform: scaleY(0.5);
        transform-origin: center;
    width: 100px;
    background-color: var(--accent-gold);
    margin: 20px auto;
    margin-top: -10px;
}

.table {
    display: grid;
    grid-template-columns: max-content max-content;
    width: fit-content;
    margin: 0 auto;
    gap: 2px 10px;
}

.table p {
    margin: 0 0; /* Tightens up the vertical spacing */
}

.table p:nth-child(odd) {     /* alignment for 2-column table */
    text-align: right;
    margin: 0;
    font-weight: bold;
}

.table p:nth-child(even) {
    text-align: left;
    margin: 0;
}

.gif {
    display: none;

}


    /* Form Styles */

.form {
    background-color: #ffffff;
    border: 1.5px solid var(--accent-gold);
    border-radius: 7px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    font-family: inherit;
}

.guest-block,
.extra-fields {
    display: grid;
    grid-template-columns: 250px 1fr; /* Column 1: Labels (250px wide) | Column 2: Inputs (remaining space) */
    gap: 15px 20px; /* 15px vertical gap, 20px horizontal gap */
    align-items: center; /* Vertically centers the label text */
    margin-bottom: 20px;
    font-family: inherit;
}

.guest-block label,
.extra-fields label {
    text-align: right;
    font-weight: bold;
    margin: 0; /* Remove default margins */
}

.details-wrapper {
    display: none;
    font-family: inherit;
}

input[type="text"], textarea {
    width: 100%;
    padding: 6px 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Essential for width: 100% */
    font-family: inherit;
}

textarea {
    min-height: 60px;
    line-height: 1.5;
    resize: vertical;     /* Allows guests to stretch it down, but not sideways */
    font-family: inherit; /* Ensures it uses the same font as the rest of the site */
}

input:focus,  /* remove red highlight */
select:focus,
textarea:focus {
    outline: none;                   /* Removes the default red/blue rim */
    border: 1px solid var(--accent-gold) !important; /* Forces our gold color */
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.3);     /* Adds a soft gold glow */
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.radio-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.radio-group label {
      display: inline;
      font-weight: normal;
      margin: 0px;
      margin-right: 25px;
      text-align: left;
}

input[type="radio"] {
    accent-color: var(--primary-green);
    outline: none;
    box-shadow: none;
    }

    input[type="radio"]:checked {
    accent-color: var(--accent-gold); /* Turns gold when selected */
}

.divider-form {
    height: 2px;
    width: 350px;
    background-color: var(--accent-gold);
    margin: 20px auto;
}


/* --- Mobile Styles (Triggered on screens smaller than 768px) --- */
@media (max-width: 768px) {

    .guest-block,
    .extra-fields {
        display: flex;        /* Switch from Grid to Flexbox */
        flex-direction: column; /* Stack items vertically */
        gap: 5px;            /* Smaller gap for mobile */
    }

    .guest-block label,
    .extra-fields label {
        text-align: left;    /* Reset text alignment to natural left */
        margin-top: 10px;    /* Add space above labels for separation */
    }
}


    /* Buttons */

.button-row {
    margin-top: 10px;
    margin-bottom: 20px;
}

.add-btn {
    background-color: var(--accent-gold);
    opacity: 0.85;
    color: black;
    font-weight: bold;
    font-size: 20px;
    border: none;
    padding: 6px;
    width: 40px;
    height: 40px;
    border-radius: 70px;
    margin: 3px;
    cursor: pointer;

}
.add-btn:hover {
    opacity: 0.75
}

.submit-btn {
    background-color: var(--primary-green);
    color: white;
    font-weight: bold;
    font-size: 16px;
    border: none;
    padding: 8px;
    width: 42%;
    border-radius: 7px;
    margin: 10px;
    cursor: pointer;
}

.submit-btn:hover {
    opacity: 0.9
}

.hidden { display: none; }


/* Success/Error Message */
#message {
margin-top: 0px;
font-weight: bold;
text-align: center;
}




    /* Photos */

.photo {
    text-align: center;
    margin-top: 80px;   /* Foto nach unten schieben */
    padding: 40px 20px;
    background-color: var(--bg-light);
}

.centered-image {
    max-width: 100%;       /* Prevents image from being wider than the screen */
    width: 600px;
    height: auto;
    border: 8px solid white;
    outline: 1.5px solid var(--accent-gold); /* The "Gold" frame look */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .centered-image {
        width: 100%; /* Take up full width minus padding on mobile */
        border-width: 4px; /* Slightly thinner border for small screens */
    }
}



    /* Guest Counter */

.counter {
     display:none
}




    /* Footer */

footer {
    text-align: center;
}

.btn-container {
    display: flex;
    justify-content: center; /* Centers horizontally */
}

.small-btn {
    /*display:none*/
    margin-top: 0px;
    margin-bottom: 20px;
    padding: 5px 5px;
    width: 150px;
    background-color: var(--primary-green);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    color: white;
    font-size: 1rem;
}

/*@media (max-width: 768px) {
    .small-btn {
        display:none !important;
    }
}*/








    /* Styling für Wunschliste */


.registry-container { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    max-width: 1000px; 
    margin: 0 auto; 
    justify-content: center;
    padding: 20px 0;
}

.tile {
    background: white; 
    border: 1px solid #ddd; 
    border-radius: 8px;
    padding: 20px; 
    width: calc(33.333% - 20px); 
    box-sizing: border-box;
    text-align: center; 
    cursor: pointer; 
    transition: transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Mobile Styling */
@media (max-width: 768px) {

    .registry-container { 
    gap: 15px;
    padding: 10px; 
    }

    .tile {
    width: 90%;
    }
}

.tile:hover:not(.taken) { 
    transform: translateY(-2px); 
    border-color: var(--primary-green); 
}

.item {
    font-family: 'Cookie', serif;
    color: var(--primary-green);
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.tile .price { 
    font-weight: bold; 
    font-size: 1rem; 
}

.tile.taken {
    background: #e0dcd6; 
    cursor: default; 
    opacity: 0.6;
    border-color: #ccc; 
    box-shadow: none;
}

.tile.taken .price { 
    display: none;
}

.modal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--bg-light);
    justify-content: center; 
    align-items: center;
}

.modal-content { 
    background: white; 
    padding: 20px; 
    border-radius: 8px; 
    width: 400px;
    margin: auto;
    border: 1.5px solid var(--accent-gold);
    border-radius: 7px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
    align-items: center;
}

@media (max-width: 768px) {
    .modal-content {
        width: 80%;
    }
}

.modal input { 
    width: 90%; 
    padding: 6px 15px; 
    margin: 10px 0; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box;
    font-size: 1rem;
}
