/* Don City – landing page and account pages (docs/server.md 5). Pulp-noir comic with neon (docs/stil/README.md): ink,
   aubergine and brown, neon magenta and turquoise, brass for the art-deco lines. Own fonts only (SIL OFL, from the game). */

@font-face {
  font-family: "Limelight";
  src: url("../medien/schriften/Limelight-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../medien/schriften/Jost-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "League Gothic";
  src: url("../medien/schriften/LeagueGothic-Regular.ttf") format("truetype");
  font-display: swap;
}

/* hidden is hidden, whatever display a class gives (a button link .knopf is inline-flex) */
[hidden] { display: none !important; }

:root {
  --tusche: #020102;
  --aubergine: #361621;
  --dunkelbraun: #532a33;
  --braun: #89584c;
  --dunst: #a36895;
  --altrosa: #dfc1c6;
  --magenta: #db75cc;
  --tuerkis: #7edae9;
  --messing: #e6bb88;
  --blutrot: #ab5350;
  --text: #f2e6e8;
  --text-leise: #c9b3b8;
  --schrift-titel: "Limelight", "Georgia", serif;
  --schrift-text: "Jost", "Segoe UI", system-ui, sans-serif;
  --schrift-auszeichnung: "League Gothic", "Arial Narrow", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; background: var(--tusche); }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--schrift-text);
  font-weight: 500;
  color: var(--text);
  background: var(--tusche);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--tuerkis); text-underline-offset: 0.18em; }
a:hover { color: #b5eef7; }

:focus-visible { outline: 3px solid var(--tuerkis); outline-offset: 3px; }

.unsichtbar {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- stage: the title film behind everything ---------- */

.buehne {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--tusche) url("../medien/poster.webp") center / cover no-repeat;
}

.film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 1;
  transition: opacity 1.2s ease;
}

/* readability: dark from the left (text side), a vignette, a floor of ink */
.schleier {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 1, 2, 0.94) 0%, rgba(2, 1, 2, 0.82) 30%, rgba(2, 1, 2, 0.38) 58%, rgba(2, 1, 2, 0.18) 78%, rgba(2, 1, 2, 0.5) 100%),
    linear-gradient(0deg, rgba(2, 1, 2, 0.92) 0%, rgba(2, 1, 2, 0) 34%),
    linear-gradient(180deg, rgba(2, 1, 2, 0.55) 0%, rgba(2, 1, 2, 0) 22%),
    radial-gradient(ellipse at 70% 40%, rgba(54, 22, 33, 0) 40%, rgba(54, 22, 33, 0.55) 100%);
}

/* comic halftone over the film */
.raster {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image: radial-gradient(rgba(2, 1, 2, 0.9) 0.9px, transparent 1.5px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

.seite { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- landing page ---------- */

.kopf {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding: clamp(1rem, 2.4vw, 2rem) clamp(1.25rem, 5vw, 5rem) 0;
}

.kopf a.leise {
  font-family: var(--schrift-auszeichnung);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--altrosa);
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
}
.kopf a.leise:hover { color: var(--tuerkis); border-bottom-color: var(--tuerkis); }

/* music button (skript/musik.js): a speaker crossed out when off, with sound waves in neon when on */
.musik {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.3rem 1rem 0.22rem 0.8rem;
  font-family: var(--schrift-auszeichnung);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--altrosa);
  background: rgba(2, 1, 2, 0.55);
  border: 1px solid rgba(230, 187, 136, 0.6);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.musik[hidden] { display: none; }
.musik:hover { color: var(--tuerkis); border-color: var(--tuerkis); }
.musik[aria-pressed="true"] {
  color: var(--tuerkis);
  border-color: var(--tuerkis);
  text-shadow: 0 0 10px rgba(126, 218, 233, 0.6);
  box-shadow: 0 0 16px rgba(126, 218, 233, 0.45), inset 0 0 10px rgba(126, 218, 233, 0.15);
}
.musik:disabled { opacity: 0.5; cursor: not-allowed; }
.musik-symbol {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.musik-symbol .lautsprecher { fill: currentColor; }
.musik .welle { display: none; }
.musik[aria-pressed="true"] .welle { display: inline; animation: klingen 2.4s ease-in-out infinite; }
.musik[aria-pressed="true"] .welle.weit { animation-delay: 0.4s; }
.musik[aria-pressed="true"] .stumm { display: none; }
.musik[aria-busy="true"] .welle { animation-duration: 0.8s; }

@keyframes klingen {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.held {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1.25rem, 5vw, 5rem) clamp(1.5rem, 4vh, 2.5rem);
}

.held-inhalt { max-width: 41rem; }

.marke {
  display: block;
  width: min(30rem, 86vw);
  height: auto;
  margin: 0 0 clamp(1.2rem, 3vh, 2rem) -0.4rem;
  filter: drop-shadow(0 0 18px rgba(219, 117, 204, 0.35)) drop-shadow(0 6px 18px rgba(2, 1, 2, 0.8));
}

.oberzeile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 0.9rem;
  font-family: var(--schrift-auszeichnung);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tuerkis);
  text-shadow: 0 0 12px rgba(126, 218, 233, 0.65);
}
.oberzeile::after {
  content: "";
  flex: 0 1 7rem;
  height: 2px;
  background: linear-gradient(90deg, var(--messing), rgba(230, 187, 136, 0));
}
/* the sign «Beta» in the top line: a small neon sign in magenta on dark ground, glimmering like the neon line of the title */
.schild-beta {
  font-family: var(--schrift-auszeichnung);
  font-size: 0.78em;
  letter-spacing: 0.18em;
  line-height: 1;
  padding: 0.12em 0.5em 0.04em;
  color: #ffd9f6;
  border: 1.5px solid var(--magenta);
  border-radius: 3px;
  background: rgba(54, 22, 33, 0.55);
  text-shadow: 0 0 8px rgba(219, 117, 204, 0.8);
  box-shadow: 0 0 10px rgba(219, 117, 204, 0.45), inset 0 0 6px rgba(219, 117, 204, 0.25);
  animation: glimmen 7s ease-in-out infinite;
}

h1 {
  margin: 0 0 1.1rem;
  font-family: var(--schrift-titel);
  font-weight: 400;
  font-size: clamp(2.35rem, 4.4vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--altrosa);
  text-shadow:
    0 0 2px rgba(255, 220, 245, 0.7),
    0 0 18px rgba(219, 117, 204, 0.55),
    0 0 42px rgba(219, 117, 204, 0.35),
    0 3px 0 var(--aubergine);
}
h1 .zeile { display: block; }
h1 .neon { color: #ffd9f6; animation: glimmen 7s ease-in-out infinite; }

.lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: clamp(1.08rem, 1.35vw, 1.3rem);
  line-height: 1.6;
  color: var(--text);
  text-shadow: 0 1px 12px rgba(2, 1, 2, 0.9);
}

.knoepfe { display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; margin: 0 0 1.1rem; }

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.5rem;
  min-height: 3.6rem;
  padding: 0.55rem 1.9rem 0.45rem;
  font-family: var(--schrift-auszeichnung);
  font-size: 1.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.knopf:active { transform: translateY(1px); }

.knopf.haupt {
  color: var(--tusche);
  border: 2px solid #f3a9e7;
  background: linear-gradient(180deg, #f0a0e3 0%, var(--magenta) 55%, #b9529f 100%);
  box-shadow: 0 0 0 1px rgba(2, 1, 2, 0.6), 0 0 22px rgba(219, 117, 204, 0.6), 0 0 60px rgba(219, 117, 204, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.knopf.haupt:hover { color: var(--tusche); transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(2, 1, 2, 0.6), 0 0 30px rgba(219, 117, 204, 0.85), 0 0 80px rgba(219, 117, 204, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.5); }

.knopf.zweit {
  color: var(--tuerkis);
  border: 2px solid var(--tuerkis);
  background: rgba(2, 1, 2, 0.55);
  box-shadow: 0 0 16px rgba(126, 218, 233, 0.35), inset 0 0 14px rgba(126, 218, 233, 0.15);
}
.knopf.zweit:hover { color: #d9f8fd; transform: translateY(-2px); background: rgba(126, 218, 233, 0.12);
  box-shadow: 0 0 26px rgba(126, 218, 233, 0.6), inset 0 0 18px rgba(126, 218, 233, 0.25); }

.hinweis { margin: 0; max-width: 34rem; font-size: 0.98rem; line-height: 1.5; color: var(--text-leise); }

.merkmale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.9rem;
  margin: 2.2rem 0 0;
  padding: 0;
  list-style: none;
}
.merkmale li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.95rem 0.42rem;
  font-family: var(--schrift-auszeichnung);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--messing);
  background: rgba(54, 22, 33, 0.62);
  border: 1px solid rgba(230, 187, 136, 0.55);
  border-radius: 2px;
  backdrop-filter: blur(3px);
}
.merkmale li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  transform: rotate(45deg);
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
}

.fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  align-items: center;
  padding: 1rem clamp(1.25rem, 5vw, 5rem) 1.4rem;
  font-size: 0.92rem;
  color: var(--text-leise);
}
.fuss a { color: var(--altrosa); text-decoration: none; }
.fuss a:hover { color: var(--tuerkis); text-decoration: underline; }
.fuss .technik { margin-left: auto; }

@keyframes glimmen {
  0%, 100% { text-shadow: 0 0 2px rgba(255, 220, 245, 0.8), 0 0 18px rgba(219, 117, 204, 0.6), 0 0 42px rgba(219, 117, 204, 0.4), 0 3px 0 var(--aubergine); }
  50% { text-shadow: 0 0 2px rgba(255, 220, 245, 0.9), 0 0 26px rgba(219, 117, 204, 0.85), 0 0 60px rgba(219, 117, 204, 0.5), 0 3px 0 var(--aubergine); }
}

/* ---------- account pages: one card on the still image ---------- */

.formularseite .buehne { filter: saturate(0.85); }
.formularseite .schleier {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(2, 1, 2, 0.55) 0%, rgba(2, 1, 2, 0.9) 75%),
    linear-gradient(0deg, rgba(2, 1, 2, 0.9), rgba(2, 1, 2, 0.4));
}

.mitte {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
}

.karte {
  width: min(29rem, 100%);
  padding: 2rem clamp(1.25rem, 4vw, 2.4rem) 2.1rem;
  background: linear-gradient(180deg, rgba(54, 22, 33, 0.9), rgba(2, 1, 2, 0.93));
  border: 1px solid rgba(230, 187, 136, 0.7);
  outline: 1px solid rgba(230, 187, 136, 0.25);
  outline-offset: 5px;
  border-radius: 3px;
  box-shadow: 0 0 40px rgba(2, 1, 2, 0.85), 0 0 26px rgba(219, 117, 204, 0.18);
}
.karte.breit { width: min(40rem, 100%); }

.karte .marke-klein { display: block; width: min(15rem, 70%); height: auto; margin: 0 auto 1.3rem; }

.karte h1 { font-size: clamp(1.9rem, 5vw, 2.4rem); text-align: center; margin-bottom: 0.6rem; }
.karte h2 {
  margin: 1.8rem 0 0.7rem;
  font-family: var(--schrift-auszeichnung);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--messing);
}
.karte p { line-height: 1.55; }
.karte .unterzeile { text-align: center; color: var(--text-leise); margin: 0 0 1.4rem; }

.feld { display: block; margin: 0 0 1.05rem; }
.feld span { display: block; margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--altrosa); letter-spacing: 0.02em; }
.feld input {
  width: 100%;
  min-height: 3rem;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: rgba(2, 1, 2, 0.75);
  border: 1px solid rgba(223, 193, 198, 0.4);
  border-radius: 2px;
}
.feld input:focus { outline: none; border-color: var(--tuerkis); box-shadow: 0 0 0 3px rgba(126, 218, 233, 0.25); }
.feld small { display: block; margin-top: 0.3rem; color: var(--text-leise); font-size: 0.85rem; }

.karte .knopf { width: 100%; min-width: 0; font-size: 1.6rem; min-height: 3.3rem; }
.karte .knopf + .knopf { margin-top: 0.8rem; }
.karte button.knopf { font-family: var(--schrift-auszeichnung); }
.karte button.knopf:disabled { opacity: 0.55; cursor: wait; }

.trenner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.3rem 0;
  color: var(--text-leise);
  font-size: 0.9rem;
}
.trenner::before, .trenner::after { content: ""; flex: 1; height: 1px; background: rgba(230, 187, 136, 0.45); }

.verweise { margin: 1.3rem 0 0; text-align: center; font-size: 0.97rem; line-height: 1.8; }

.meldung {
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid var(--tuerkis);
  background: rgba(126, 218, 233, 0.09);
  line-height: 1.45;
}
.meldung:empty { display: none; }
.meldung.fehler { border-left-color: var(--blutrot); background: rgba(171, 83, 80, 0.16); }

.liste { margin: 0 0 1rem; padding: 0; list-style: none; }
.liste li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(230, 187, 136, 0.25);
}
.liste li small { color: var(--text-leise); }
.liste button {
  font: inherit;
  font-size: 0.9rem;
  color: var(--altrosa);
  background: none;
  border: 1px solid rgba(223, 193, 198, 0.45);
  border-radius: 2px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}
.liste button:hover { border-color: var(--blutrot); color: #ffd0cd; }

.gefahr summary { cursor: pointer; color: var(--text-leise); margin-top: 1.6rem; }
.gefahr .knopf.zweit { color: #ffb4ae; border-color: var(--blutrot); box-shadow: none; }

.rechtstext { max-width: 44rem; }
.rechtstext p { color: var(--text); }

/* ---------- phones: text below the film, full-width buttons ---------- */

@media (max-width: 720px) {
  .kopf { justify-content: center; }
  .held { align-items: flex-end; }
  .held-inhalt { max-width: none; }
  .schleier {
    background:
      linear-gradient(0deg, rgba(2, 1, 2, 0.97) 0%, rgba(2, 1, 2, 0.9) 42%, rgba(2, 1, 2, 0.35) 72%, rgba(2, 1, 2, 0.55) 100%),
      radial-gradient(ellipse at 50% 30%, rgba(54, 22, 33, 0) 30%, rgba(54, 22, 33, 0.6) 100%);
  }
  .film { object-position: 58% 35%; }
  .marke { width: min(22rem, 88vw); margin-left: auto; margin-right: auto; }
  .oberzeile { justify-content: center; }
  .oberzeile::after { display: none; }
  h1, .lead, .hinweis { text-align: center; margin-left: auto; margin-right: auto; }
  .knoepfe { flex-direction: column; }
  .knopf { width: 100%; }
  .merkmale { justify-content: center; margin-top: 1.6rem; }
  .fuss { justify-content: center; text-align: center; }
  .fuss .technik { margin-left: 0; width: 100%; }
}

/* motion only when wanted: the still image (poster) instead of the film, no glow animation */
@media (prefers-reduced-motion: reduce) {
  .film { display: none; }
  h1 .neon, .schild-beta { animation: none; }
  .knopf, .musik { transition: none; }
  .musik[aria-pressed="true"] .welle { animation: none; }
}
