/*  Gemeinsames Fundament. Die Player-Seite bringt ihr eigenes CSS mit,
    damit sie mit einer einzigen Anfrage auskommt.  */

:root {
  --bg:     #FAF8F5;
  --card:   #FFFFFF;
  --fg:     #1F1D1B;
  --muted:  #6F6A63;
  --accent: #6B7A64;
  --line:   #E5E0D8;
  --err:    #8C3A2E;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #15140F;
    --card:   #1E1C17;
    --fg:     #EDE9E1;
    --muted:  #A49C8F;
    --accent: #9CB093;
    --line:   #33302A;
    --err:    #D98A7C;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 .75rem;
}

p { margin: 0 0 1.25rem; max-width: 40rem; }
.lead  { color: var(--muted); }
.small { font-size: .875rem; color: var(--muted); line-height: 1.5; }

label {
  display: block;
  font-size: .875rem;
  letter-spacing: .02em;
  margin: 1.5rem 0 .4rem;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
.drop:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Dateiauswahl --- */
.drop {
  margin-top: .4rem;
  padding: 2.25rem 1.25rem;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.drop.over   { border-color: var(--accent); }
.drop strong { font-weight: 500; }

.picked {
  display: none;
  margin-top: .75rem;
  padding: .9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.picked.on { display: block; }
.picked .name { word-break: break-all; }

/* --- Zustimmung --- */
.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  margin: 1.75rem 0 .5rem;
  font-size: .9rem;
  line-height: 1.5;
}
.consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; }

/* --- Knopf --- */
button.primary {
  width: 100%;
  margin-top: 1.75rem;
  padding: .95rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--bg);
  background: var(--fg);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
button.primary:disabled { opacity: .4; cursor: default; }

/* --- Fortschritt --- */
.bar {
  display: none;
  height: 3px;
  margin-top: 1.25rem;
  background: var(--line);
  overflow: hidden;
}
.bar.on   { display: block; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }

.msg { margin-top: 1rem; font-size: .9rem; }
.msg.error { color: var(--err); }

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
}
footer a { color: inherit; }
