@font-face { font-family: Lato; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/lato-400.woff2") format("woff2"); }
@font-face { font-family: Lato; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lato-700.woff2") format("woff2"); }
@font-face { font-family: Lora; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/lora-700.woff") format("woff"); }

:root {
    --card: #ffffff;
    --text: #33373b;
    --muted: #62676b;
    --primary: #c20430;
    --primary-strong: #970326;
    --primary-soft: #fcf2f4;
    --success: #157347;
    --success-soft: #d1f2de;
    --error: #b42318;
    --error-soft: #fce4e2;
    --border: #dedfe0;
    --shadow: 0 4px 18px rgba(51, 55, 59, 0.04);
}

* {
    box-sizing: border-box;
}

body {
    font-family: Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #fff;
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

.page {
    max-width: 860px;
    padding: 48px 24px 56px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: Lora, Georgia, "Times New Roman", serif;
    line-height: 1.25;
}
h1 { font-size: clamp(32px, 5vw, 44px); margin: 8px 0 16px; }

#uploadForm,
.bedingungen {
    background: var(--card);
    border-radius: 0;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

#uploadForm {
    padding: 28px;
}

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.deadline { margin-bottom: 24px; padding: 18px; background: #f6f6f6; border-left: 3px solid var(--primary); border-radius: 0; line-height: 1.6; }
.deadline.closed { background: #fce4e2; color: #970326; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.field {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text);
}

input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 16px;
}

.upload-zone {
    position: relative;
    border: 2px dashed #b8babc;
    border-radius: 2px;
    padding: 18px;
    min-height: 190px;
    background: #f8f8f8;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.upload-zone.dragover {
    border-color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-copy {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

.upload-copy strong {
    display: block;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 6px;
}

.thumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.thumb {
    width: 180px;
    text-align: center;
}

.thumb img {
    display: block;
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f4f6f8;
    margin: 0 auto;
}

.thumb span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-box {
    display: none;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: bold;
    white-space: pre-line;
}

.status-box.erfolg {
    display: block;
    background: var(--success-soft);
    color: var(--success);
    border: 1px solid #aadbbc;
    text-align: center;
    font-size: 24px;
}

.status-box.warnung {
    display: block;
    background: #fff3cd;
    color: #704500;
    border: 1px solid #e8c664;
}

.status-box.fehler {
    display: block;
    background: var(--error-soft);
    color: var(--error);
    border: 1px solid #f1b5b0;
}

.progress-wrap {
    display: none;
    margin-top: 20px;
}

.progress-wrap.aktiv {
    display: block;
}

.progress-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--muted);
}

.progress-bar {
    height: 14px;
    border-radius: 2px;
    background: #e8e8e8;
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: width 0.2s ease;
}

.submit-btn {
    margin-top: 24px;
    background: var(--primary);
    color: #fff;
    padding: 15px 28px;
    width: 100%;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    box-shadow: none;
    transition: transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
    background: var(--primary-strong);
}

.submit-btn:disabled {
    cursor: wait;
    opacity: 0.6;
}

.bedingungen {
    margin-top: 24px;
    padding: 24px;
    color: var(--muted);
}

.progress-note {
    display: none;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    padding: 20px;
    background: #fff3cd;
    border: 2px solid #d5a333;
    border-radius: 12px;
    color: #704500;
    box-shadow: 0 6px 18px rgba(112, 69, 0, 0.12);
}

.progress-note strong {
    display: block;
    font-size: 20px;
    line-height: 1.4;
}

.progress-note p {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 1.5;
}

.loading-spinner {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 4px solid #ead59e;
    border-top-color: #970326;
    border-radius: 50%;
    animation: loading-spin 0.9s linear infinite;
}

.progress-note.aktiv {
    display: flex;
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .loading-spinner { animation: none; }
}

.bedingungen h3 {
    margin-top: 0;
    color: var(--text);
}

.bedingungen ul {
    margin: 0;
    padding-left: 20px;
}

.bedingungen li {
    margin-bottom: 10px;
}

@media (max-width: 640px) {
    .page { padding: 32px 18px 40px; }

    #uploadForm,
    .bedingungen {
        padding: 18px;
    }
}

/* Vereinsgestaltung, gemeinsam für Upload und Verwaltung. */
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-strong); }
input, button { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible,
.upload-zone:focus-within { outline: 3px solid var(--primary); outline-offset: 4px; }
.site-header { background: var(--primary); color: white; }
.header-inner { max-width: 1200px; margin: auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.club-logo { display: block; width: 210px; height: auto; }
.brand-link { display: inline-block; flex-shrink: 0; }
.site-header a { color: white; }
.site-header a:focus-visible { outline-color: white; }
.header-link { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.header-link:hover { text-decoration: underline; }
.eyebrow { margin: 0; color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.page-intro { margin: 0 0 28px; color: var(--muted); }
.deadline strong, #deadlineState { display: block; }
.submit-btn { letter-spacing: .06em; text-transform: uppercase; }
.submit-btn:disabled { cursor: not-allowed; }
.bedingungen { box-shadow: none; background: #f8f8f8; font-size: 14px; }
.bedingungen h3 { font-size: 22px; }
.site-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 13px; }
.site-footer a { display: inline-block; margin: 0 6px; }
.admin-page main { max-width: 860px; margin: auto; padding: 40px 24px 56px; }
.admin-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-page h2 { font-size: 23px; margin: 0 0 20px; }
.admin-page .intro, .admin-page .hint { color: var(--muted); }
.card { border: 1px solid var(--border); padding: 28px; margin: 24px 0; background: white; }
.admin-page input { padding: 12px; border: 1px solid #b8babc; border-radius: 2px; width: 100%; max-width: 380px; }
.admin-page button { font-weight: 700; background: var(--primary); color: white; border: 0; border-radius: 2px; padding: 13px 24px; cursor: pointer; max-width: 100%; }
.admin-page button:hover { background: var(--primary-strong); }
.admin-page button:disabled { opacity: .5; cursor: not-allowed; }
.admin-page .logout { background: white; color: var(--primary); border: 1px solid var(--border); }
.actions { margin-top: 20px; }
.notice { padding: 14px 18px; border-left: 3px solid var(--success); background: var(--success-soft); color: #155724; }
.notice.error { border-color: var(--error); background: var(--error-soft); color: var(--error); }
.badge { font-weight: 700; }
.response-page main { max-width: 700px; margin: auto; padding: 48px 24px; }
.meldung { padding: 24px; border: 1px solid var(--border); overflow-wrap: anywhere; }
.meldung.erfolg { color: #155724; background: var(--success-soft); }
.meldung.warnung { color: #704500; background: #fff3cd; }
.meldung.fehler { color: #721c24; background: var(--error-soft); }
@media (max-width: 640px) {
    .header-inner { padding: 14px 18px; gap: 16px; }
    .club-logo { width: 165px; }
    .header-link { font-size: 11px; text-align: right; }
    .grid { grid-template-columns: 1fr; gap: 0; }
    .admin-page main { padding: 32px 18px 40px; }
    .card { padding: 20px; }
    .progress-note { align-items: flex-start; padding: 16px; gap: 12px; }
}
@media (max-width: 480px) { .admin-page .card button { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
