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

body {
    background: #f0f2f5;
    font-family: Helvetica, Arial, sans-serif;
}

/* Container scales with the image and keeps overlay positions in sync */
.stage {
    position: relative;
    min-width: 1024px;
}

.background {
    display: block;
    width: 100%;
    height: auto;
}

/* Invisible click area exactly over the "Zusagen" button in the image.
   Coordinates are percentages relative to the image (1024x656 reference). */
.rsvp-button {
    position: absolute;
    left: 72.4%;
    top: 61.9%;
    width: 5.9%;
    height: 3.2%;
    background: transparent;
    border: 2px solid red;
    border-radius: 6px;
    cursor: pointer;
}

.rsvp-button:hover,
.event-button:hover {
    outline: 2px solid #1877f2;
    outline-offset: 2px;
}

/* Click area over the sidebar event "Vortrag von Dr. L. Jobst" */
.event-button {
    position: absolute;
    left: 1.2%;
    top: 57.2%;
    width: 18.5%;
    height: 6%;
    background: transparent;
    border: 2px solid red;
    border-radius: 6px;
    cursor: pointer;
}

/* Password login */
.login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: #fff;
    border-radius: 12px;
    padding: 32px 40px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.login-box p {
    margin: 12px 0;
}

.login-box input {
    padding: 10px 12px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    font-size: 15px;
    width: 220px;
}

.login-box button {
    display: block;
    margin: 16px auto 0;
    padding: 10px 24px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.login-box button:hover {
    background: #166fe5;
}

.login-hint {
    margin-top: 16px;
    font-size: 12px;
    color: #8a8d91;
}

.login-error {
    color: #e41e3f;
    font-weight: 600;
}

/* Confirmation overlay */
.confirmation {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.confirmation.hidden {
    display: none;
}

.confirmation-box {
    background: #fff;
    border-radius: 12px;
    padding: 32px 40px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.confirmation-box h2 {
    margin-bottom: 12px;
}

.confirmation-box .address {
    color: #65676b;
    margin-top: 8px;
}

#close-confirmation {
    margin-top: 20px;
    padding: 10px 24px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#close-confirmation:hover {
    background: #166fe5;
}
