body {
    margin: 0;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    background-color: #fdfaf7;
    color: #333;
    font-size: 1.125rem; /* 18px bei 16px Basis */
}

.hero {
    background: url('assets/IMG_2293.HEIC') center/cover no-repeat;
    background-position: center 30%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 10px;
}

.hero-countdown {
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.hero-countdown #countdown {
    font-size: 2rem;
    font-weight: bold;
}
section {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: auto;
    position: relative;
}

section + section::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ccc;
    position: absolute;
    top: 0;
    left: 0;
}
h1, h2, h3 {
    font-weight: normal;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 0.5rem 0;
}

form {
    display: flex;
    flex-direction: column;
}

form > div {
    width: 100%;
}

[hidden] {
    display: none !important;
}

form label {
    margin-top: 1rem;
    display: block;
}

form input, form select, form textarea {
    padding: 0.5rem;
    margin-top: 0.3rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

form input[type="checkbox"] {
    display: inline-block;
    width: auto;
    box-sizing: content-box;
}

details {
    width: 100%;
}

button {
    margin-top: 1.5rem;
    padding: 0.8rem;
    border: none;
    background-color: #999356;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #5A6032;
}

button:disabled {
    background-color: #c9c6a8;
    color: #f6f4e7;
    cursor: not-allowed;
}

#form-status {
    min-height: 1.5rem;
    margin-top: 0.8rem;
    color: #5A6032;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
}

.consent-row input[type="checkbox"] {
    margin-top: 0.25rem;
}

#guest-auth-hint {
    margin-bottom: 1rem;
    color: #5A6032;
}

/* link color customization */
a {
    color: #A8758C;
    text-decoration: none;
}
a:hover,
a:focus {
    text-decoration: underline;
}
.color-palette {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.color-palette .color-card {
    text-align: center;
}
.color-palette .color-sample {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ccc;
    margin: 0 auto;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: #eee;
}

.footer-logout {
    margin-top: 0.6rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6f6f6f;
    font-size: 0.9rem;
    text-decoration: underline;
}

.footer-logout:hover {
    background: transparent;
    color: #333;
}

.admin {
    max-width: 1100px;
}

.admin-card {
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#logout-button {
    margin-top: 0;
}

.admin-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

#admin-table,
#guests-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

#admin-table th,
#admin-table td,
#guests-table th,
#guests-table td {
    border: 1px solid #ddd;
    padding: 0.65rem;
    text-align: left;
    vertical-align: top;
}

#admin-table th,
#guests-table th {
    background-color: #f3efe8;
}

.login {
    max-width: 420px;
}

#guest-create-status {
    min-height: 1.4rem;
    margin-top: 0.8rem;
    color: #5A6032;
}

.admin-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    align-items: end;
}

.admin-controls input,
.admin-controls select {
    margin-top: 0;
}

.admin-controls button {
    margin-top: 0;
}

.table-pagination {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.table-pagination button {
    margin-top: 0;
}

.table-pagination span {
    font-size: 0.95rem;
    color: #5A6032;
}

input:invalid,
textarea:invalid,
select:invalid {
    border-color: #c55a5a;
}

.secondary-action {
    margin-top: 0.8rem;
    background: transparent;
    color: #5A6032;
    border: 1px solid #5A6032;
}

.danger-action {
    margin-top: 0;
    background-color: #904343;
}

.danger-action:hover {
    background-color: #7c3636;
}