/* Download-Seite hinter dem Worker (0253), im Stil von web/oeffentlich/stil.css. */

@font-face {
  font-family: "Fredoka";
  src: url("schrift/fredoka-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("schrift/nunito-semibold.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("schrift/nunito-extrabold.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}

:root {
  --holz-tief: #1d120a;
  --holz: #2e1d10;
  --holz-hell: #4a2f19;
  --gold: #f0bf55;
  --gold-hell: #ffe39a;
  --pergament: #fbefd5;
  --pergament-matt: #d8c3a0;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--holz-tief);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--pergament);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(240, 191, 85, 0.18), transparent 70%),
    linear-gradient(180deg, var(--holz) 0%, var(--holz-tief) 50%);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

h1,
h2,
h3 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.kopf {
  text-align: center;
  margin-bottom: 40px;
}
.kopf h1 {
  margin: 0 0 6px;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  color: var(--gold-hell);
  text-shadow: 0 2px 0 var(--holz-tief), 0 0 28px rgba(240, 191, 85, 0.35);
}
.kopf p {
  margin: 4px 0;
  color: var(--pergament-matt);
}
.kopf .version {
  color: var(--pergament);
}
.knopf {
  display: inline-block;
  margin: 22px 0 8px;
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hell), var(--gold));
  color: var(--holz-tief);
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: 0 6px 0 #a5772a, 0 10px 30px rgba(0, 0, 0, 0.45);
}
.knopf.zweit {
  margin: 18px 0 4px;
  padding: 9px 22px;
  font-size: 1rem;
  box-shadow: 0 4px 0 #a5772a, 0 8px 20px rgba(0, 0, 0, 0.4);
}
.knopf:hover,
.knopf:focus-visible {
  filter: brightness(1.06);
}
.knopf:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #a5772a, 0 6px 20px rgba(0, 0, 0, 0.45);
}
.hinweis {
  font-size: 0.95rem;
}

.notes h2 {
  margin: 0 0 16px;
  font-size: 1.6rem;
  color: var(--gold-hell);
}
.eintrag {
  margin: 0 0 18px;
  padding: 20px 22px;
  border-radius: 16px;
  background: rgba(74, 47, 25, 0.45);
  box-shadow: 0 0 0 1.5px rgba(240, 191, 85, 0.35);
}
.eintrag .titel,
.eintrag summary {
  margin: 0 0 10px;
  font-family: "Fredoka", "Nunito", sans-serif;
  font-size: 1.25rem;
  color: var(--gold-hell);
}
.eintrag summary {
  margin: 0;
  cursor: pointer;
}
details[open] summary {
  margin-bottom: 10px;
}
.eintrag .h,
.eintrag time {
  margin-left: 6px;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--pergament-matt);
}
.eintrag h3:not(.titel) {
  margin: 22px 0 6px;
  font-size: 1.1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.einleitung {
  margin: 0 0 4px;
  font-style: italic;
  color: var(--pergament-matt);
}
.eintrag ul,
.eintrag ol {
  margin: 0;
  padding-left: 1.2em;
}
.eintrag li {
  margin: 0 0 10px;
}
.eintrag li::marker {
  color: var(--gold);
}
.eintrag strong {
  font-weight: 800;
  color: var(--gold-hell);
}
.entwickler {
  display: block;
  margin-top: 6px;
  padding: 8px 12px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(29, 18, 10, 0.55);
  color: #9fd3ff;
  font-style: italic;
}
.entwickler b {
  font-style: normal;
  color: #c8e6ff;
}

footer {
  padding: 0 20px 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--pergament-matt);
}

a {
  color: var(--gold-hell);
  text-underline-offset: 0.2em;
}
a:hover,
a:focus-visible {
  color: var(--gold);
}
.kopf .hinweis {
  max-width: 560px;
  margin: 8px auto 0;
  font-size: 0.9rem;
}

.anforderungen,
.einstieg,
.brief,
.schritte {
  margin-bottom: 36px;
}
.einstieg li:last-child,
.brief li:last-child {
  margin-bottom: 0;
}
.einstieg b {
  font-weight: 800;
  color: var(--gold-hell);
}
.anforderungen h2,
.einstieg h2,
.brief h2,
.schritte h2 {
  margin: 0 0 16px;
  font-size: 1.6rem;
  color: var(--gold-hell);
}
.anforderungen table {
  width: 100%;
  border-collapse: collapse;
}
.anforderungen th,
.anforderungen td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(240, 191, 85, 0.2);
}
.anforderungen thead th {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  color: var(--gold);
}
.anforderungen tbody th {
  font-weight: 800;
  color: var(--gold-hell);
  white-space: nowrap;
}
.anforderungen .einleitung {
  margin-top: 14px;
  font-size: 0.95rem;
}
@media (max-width: 560px) {
  .anforderungen th,
  .anforderungen td {
    padding: 6px 4px;
    font-size: 0.9rem;
  }
  .anforderungen tbody th {
    white-space: normal;
  }
}

/* Sprachumschalter oben (26.10.) und Hinweis bei Patchnotes ohne Übersetzung. */
.kopf .sprache {
  margin: 0 0 14px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.kopf .sprache span[aria-current] {
  color: var(--gold-hell);
  font-weight: 800;
}
.hinweis-sprache {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--pergament-matt);
}

/* Erste Schritte (Netz 7, 04.11.): eigene Seite, Tasten als Tastenkappen. */
.kopf .schritte-link {
  margin-top: 14px;
}
.schritte .eintrag h3:first-of-type {
  margin-top: 18px;
}
.schritte li:last-child {
  margin-bottom: 0;
}
kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 0.45em;
  border: 1px solid rgba(240, 191, 85, 0.55);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: rgba(29, 18, 10, 0.7);
  color: var(--gold-hell);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 0.85em;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}
/* Zeitalter 3 (Netz 10, 05.11.): Datei- und Ordnernamen, der Einstiegsstand als Link. */
code {
  padding: 0 0.3em;
  border-radius: 4px;
  background: rgba(29, 18, 10, 0.55);
  color: var(--gold-hell);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
a code {
  color: inherit;
  text-decoration: underline;
}
.kopf .schritte-link + .schritte-link {
  margin-top: 6px;
}


/* Anmeldeseite (Netz 31): Name und Passwort statt Browser-Fenster. */
.anmeldung {
  max-width: 440px;
  margin: 0 auto 36px;
}
.anmeldung h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: var(--gold-hell);
}
.anmeldung form {
  display: grid;
  gap: 6px;
  margin: 16px 0 6px;
}
.anmeldung label {
  margin-top: 8px;
  font-weight: 800;
  color: var(--gold-hell);
}
/* Verwalterseite /einladen (Netz 35): der neue Link, die Nachricht und die Liste mit „zurückziehen“. */
.anmeldung .neu {
  display: grid;
  gap: 6px;
  margin: 16px 0;
}
.anmeldung textarea {
  resize: vertical;
  line-height: 1.4;
}
.anmeldung li form {
  display: inline;
  margin: 0;
}
.anmeldung li button {
  font: inherit;
  cursor: pointer;
}
.anmeldung input,
.anmeldung textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(240, 191, 85, 0.45);
  border-radius: 12px;
  background: rgba(29, 18, 10, 0.75);
  color: var(--pergament);
  font: inherit;
}
.anmeldung input:focus-visible,
.anmeldung textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}
.anmeldung button.knopf {
  justify-self: start;
  margin-top: 18px;
  border: 0;
  cursor: pointer;
}
.anmeldung .fehler {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(150, 40, 25, 0.45);
  box-shadow: 0 0 0 1.5px rgba(255, 140, 110, 0.6);
  color: #ffe1d6;
}
@media (max-width: 560px) {
  .anmeldung button.knopf {
    justify-self: stretch;
    text-align: center;
  }
}
