:root {
    color-scheme: light;
    --color-text: #1f2933;
    --color-bg: #f7f8fa;
    --color-border: #d2d6dc;
    --color-primary: #1a73e8;
    --color-primary-dark: #155ab6;
    --color-error: #b00020;
    --color-success: #1b8a3e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

h1 {
    margin-top: 0;
}

p {
    margin: 0.75rem 0;
}

.muted {
    color: #616e7c;
    font-size: 0.9rem;
}

.error {
    color: var(--color-error);
    font-size: 0.9rem;
    margin: 0.25rem 0 0.75rem;
}

.success {
    color: var(--color-success);
    font-weight: 600;
}

form {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.form-row {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
}

input:invalid {
    box-shadow: none;
}

button,
.button {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.65rem 1.25rem;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button:hover {
    background: var(--color-primary-dark);
}

button.reject {
    background: #b00020;
}

button.reject:hover {
    background: #8a0018;
}

.ref-code {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: #fff;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 1rem;
}

th,
td {
    text-align: left;
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.actions {
    display: flex;
    gap: 0.5rem;
}

.inline-form {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

/* ===== Anmeldeformular – Sommernacht-Design ===== */

body.page-anmeldung {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-image: url('Hintergrund.jpeg');
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    color: #f0e6cc;
}

body.page-anmeldung::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(5, 3, 22, 0.52) 0%,
        rgba(10, 6, 28, 0.60) 60%,
        rgba(3, 2, 10, 0.68) 100%
    );
    z-index: 0;
    pointer-events: none;
}

body.page-anmeldung .container {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 100%;
    background: rgba(8, 5, 20, 0.38);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    border: 1px solid rgba(220, 168, 48, 0.22);
    border-radius: 20px;
    padding: 2.75rem 2.25rem 2.25rem;
    box-shadow:
        0 2px 0 rgba(220, 168, 48, 0.15) inset,
        0 12px 64px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(220, 168, 48, 0.06);
}

body.page-anmeldung .zirkel-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72%;
    aspect-ratio: 4 / 3;
    background: url('Zirkel.png') center / contain no-repeat;
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

body.page-anmeldung .container > *:not(.zirkel-mark) {
    position: relative;
    z-index: 1;
}

body.page-anmeldung h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #f2dc80;
    text-align: center;
    letter-spacing: 0.03em;
    margin: 0 0 0.25rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 40px rgba(240, 190, 60, 0.18);
    line-height: 1.2;
}

body.page-anmeldung .form-intro {
    color: #c8b98a;
    font-size: 0.92rem;
    line-height: 1.65;
    text-align: center;
    margin: 0.6rem 0 0;
}

body.page-anmeldung .form-intro strong {
    color: #f2dc80;
    font-weight: 600;
}

body.page-anmeldung p.error {
    color: #ffaaaa;
    font-size: 0.875rem;
    margin: 0.2rem 0 0.6rem;
    text-align: left;
}

body.page-anmeldung form {
    background: transparent;
    border: none;
    border-top: 1px solid rgba(220, 168, 48, 0.18);
    border-radius: 0;
    padding: 1.6rem 0 0;
    margin-top: 1.4rem;
}

body.page-anmeldung .form-row {
    margin-bottom: 1.15rem;
}

body.page-anmeldung label {
    display: block;
    color: #d8c47a;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

body.page-anmeldung input[type="text"],
body.page-anmeldung input[type="email"],
body.page-anmeldung input[type="password"] {
    width: 100%;
    background: rgba(255, 248, 220, 0.06);
    border: 1px solid rgba(220, 168, 48, 0.28);
    border-radius: 9px;
    color: #f0e6cc;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    padding: 0.62rem 0.9rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

body.page-anmeldung input[type="text"]::placeholder,
body.page-anmeldung input[type="email"]::placeholder,
body.page-anmeldung input[type="password"]::placeholder {
    color: rgba(240, 230, 204, 0.3);
}

body.page-anmeldung input[type="text"]:focus,
body.page-anmeldung input[type="email"]:focus,
body.page-anmeldung input[type="password"]:focus {
    outline: none;
    border-color: rgba(230, 180, 50, 0.65);
    background: rgba(255, 248, 220, 0.10);
    box-shadow: 0 0 0 3px rgba(220, 168, 48, 0.12);
}

body.page-anmeldung input:invalid {
    box-shadow: none;
}

body.page-anmeldung button[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #b8841e 0%, #e8b848 45%, #c8921e 100%);
    color: #1a0e00;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.82rem 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(200, 140, 20, 0.45), 0 1px 0 rgba(255, 220, 80, 0.3) inset;
    transition: opacity 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

body.page-anmeldung button[type="submit"]:hover {
    opacity: 0.91;
    box-shadow: 0 6px 32px rgba(200, 140, 20, 0.58), 0 1px 0 rgba(255, 220, 80, 0.3) inset;
    transform: translateY(-1px);
}

body.page-anmeldung button[type="submit"]:active {
    transform: translateY(0);
    opacity: 1;
}

body.page-anmeldung a.button {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    background: linear-gradient(135deg, #b8841e 0%, #e8b848 45%, #c8921e 100%);
    color: #1a0e00;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.82rem 1.5rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(200, 140, 20, 0.45), 0 1px 0 rgba(255, 220, 80, 0.3) inset;
    transition: opacity 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

body.page-anmeldung a.button:hover {
    opacity: 0.91;
    box-shadow: 0 6px 32px rgba(200, 140, 20, 0.58), 0 1px 0 rgba(255, 220, 80, 0.3) inset;
    transform: translateY(-1px);
}

body.page-anmeldung .ref-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: rgba(255, 248, 220, 0.08);
    border: 1px dashed rgba(220, 168, 48, 0.45);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: #f2dc80;
    margin: 0.5rem 0 1rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

body.page-anmeldung .ref-code:hover {
    background: rgba(255, 248, 220, 0.13);
}

body.page-anmeldung .copy-icon {
    display: flex;
    align-items: center;
    color: #f2dc80;
    flex-shrink: 0;
    transition: color 0.25s ease;
}

body.page-anmeldung .ref-code.copied .copy-icon {
    color: #4ade80;
}

body.page-anmeldung .icon-copy  { display: block; }
body.page-anmeldung .icon-check { display: none;  }

body.page-anmeldung .ref-code.copied .icon-copy  { display: none;  }
body.page-anmeldung .ref-code.copied .icon-check { display: block; }

body.page-anmeldung .muted {
    color: #9a8a62;
    font-size: 0.875rem;
}

@media (max-width: 480px) {
    body.page-anmeldung .container {
        padding: 2rem 1.25rem 1.75rem;
        border-radius: 16px;
    }

    body.page-anmeldung h1 {
        font-size: 1.65rem;
    }
}
