:root {
    color-scheme: light;
    --red: #e30613;
    --red-dark: #b9040e;
    --ink: #ffffff;
    --ink-soft: #f6f7f8;
    --line: #cbd1d7;
    --text: #202830;
    --muted: #68737e;
    --page-text: #313d47;
    --shadow: 0 20px 55px rgba(17, 24, 39, 0.16);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f5f6f7;
    color: var(--page-text);
    font-family: "Open Sans", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

.site-header {
    min-height: 86px;
    padding: 14px max(22px, calc((100vw - 1080px) / 2));
    background: #fff;
    border-top: 7px solid var(--red);
    box-shadow: 0 5px 24px rgba(17, 24, 39, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: auto;
    height: 58px;
}

.back-link,
footer a,
.privacy-note a {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible,
footer a:hover,
footer a:focus-visible,
.privacy-note a:hover,
.privacy-note a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

main {
    width: min(100% - 32px, 820px);
    margin: 0 auto;
    padding: 58px 0 72px;
}

.intro {
    margin: 0 0 30px;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--red);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: var(--red);
    font-size: clamp(2.4rem, 7vw, 4.25rem);
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 1;
    text-transform: uppercase;
}

.intro > p:last-child {
    max-width: 720px;
    margin: 18px 0 0;
}

.spielerpass-form {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid #d9dde2;
    border-radius: 18px;
    background: var(--ink);
    color: var(--text);
    box-shadow: var(--shadow);
}

.spielerpass-form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: var(--red);
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

fieldset + fieldset {
    margin-top: 46px;
    padding-top: 38px;
    border-top: 1px solid #e1e4e8;
}

legend {
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    color: #17191c;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
}

legend span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78em;
    font-weight: 500;
}

.guardian-group,
.spielerpass-form > fieldset:last-of-type {
    padding-top: 4px;
}

.guardian-group > legend,
.spielerpass-form > fieldset:last-of-type > legend {
    margin-bottom: 10px;
}

.field + .field {
    margin-top: 20px;
}

.field > label {
    display: block;
    margin: 0 0 7px;
    color: #202830;
    font-size: 0.92rem;
    font-weight: 750;
}

input[type="text"],
input[type="email"] {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    outline: none;
    background: #fff;
    color: #17191c;
    font: inherit;
    font-size: 1rem;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
    color: #8a939c;
    opacity: 1;
}

input[type="text"]:hover,
input[type="email"]:hover {
    border-color: #929ba4;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: var(--red);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.16);
}

small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.file-control {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.file-button {
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 5px;
    background: #2f353b;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 750;
    cursor: pointer;
    transition: background 160ms ease, box-shadow 160ms ease;
}

input[type="file"]:focus-visible + .file-button,
.file-button:hover {
    background: #414950;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.2);
}

.file-name {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.privacy-note {
    display: block;
    visibility: visible;
    height: auto;
    opacity: 1;
    margin: 42px 0 22px;
    padding: 16px 18px;
    border-left: 3px solid var(--red);
    background: var(--ink-soft);
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.privacy-note h2 {
    margin: 0 0 10px;
    color: #17191c;
    font-size: 1.05rem;
    line-height: 1.3;
}

.privacy-note p {
    margin: 0;
}

.privacy-note p + p {
    margin-top: 10px;
}

.privacy-consent {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    margin: 0 0 24px;
    color: #202830;
    font-size: 0.86rem;
    line-height: 1.5;
}

.privacy-consent input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: var(--red);
    cursor: pointer;
}

.privacy-consent input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(227, 6, 19, 0.45);
    outline-offset: 3px;
}

.privacy-consent label {
    cursor: pointer;
}

.submit-button {
    width: 100%;
    min-height: 54px;
    padding: 12px 20px;
    border: 0;
    border-radius: 7px;
    background: var(--red);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
    background: var(--red-dark);
    box-shadow: 0 9px 24px rgba(227, 6, 19, 0.28);
    transform: translateY(-1px);
}

.submit-button:focus-visible {
    outline: 3px solid #202830;
    outline-offset: 3px;
}

.status {
    margin: 0 0 24px;
    padding: 22px 24px;
    border-radius: 12px;
    box-shadow: 0 9px 28px rgba(17, 24, 39, 0.1);
}

.status h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.status p,
.status ul {
    margin-top: 0;
    margin-bottom: 0;
}

.status-error {
    border: 1px solid #ffb4b4;
    background: #fff1f1;
    color: #7c1010;
}

.status-success {
    border: 1px solid #a9dfbd;
    background: #effbf3;
    color: #155a2e;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

footer {
    min-height: 90px;
    padding: 28px 20px;
    background: #0e0f11;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-size: 0.85rem;
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .site-header {
        min-height: 72px;
        padding: 10px 16px;
    }

    .brand img {
        height: 46px;
    }

    .back-link {
        font-size: 0.82rem;
    }

    main {
        width: min(100% - 22px, 820px);
        padding: 38px 0 52px;
    }

    .intro {
        margin-bottom: 23px;
    }

    .spielerpass-form {
        border-radius: 12px;
    }

    fieldset + fieldset {
        margin-top: 38px;
        padding-top: 32px;
    }

    .file-control {
        align-items: stretch;
        flex-direction: column;
    }

    .file-button {
        text-align: center;
    }

    .file-name {
        padding: 2px 4px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
