/* Walterbox Design-System
   Stil: Risograph / Retro-Comic – dicke dunkle Konturen, Siebdruck-Optik,
   leichte Papier-Textur. Alle Komponenten sind wiederverwendbar. */

:root {
  --creme: #F5EBD7;
  --petrol: #2E8B84;
  --petrol-dunkel: #1F5F5A;
  --aubergine: #6B3A6B;
  --korall: #E8604C;
  --senf: #E0B36A;
  --tinte: #1A1A1A;
  --gruen-label: #4A7A2E;

  --kontur: 3px solid var(--tinte);
  --kontur-dick: 4px solid var(--tinte);
  --schatten-versatz: 6px 6px 0 var(--tinte);
  --schatten-versatz-klein: 4px 4px 0 var(--tinte);
  --radius: 14px;
  --radius-klein: 8px;

  --schrift-serif: Georgia, 'Times New Roman', 'Source Serif Pro', serif;
  --schrift-fett: 'Segoe UI Semibold', 'Trebuchet MS', Verdana, sans-serif;

  --abstand: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--schrift-serif);
  color: var(--tinte);
  background-color: var(--creme);
  background-image: radial-gradient(rgba(26, 26, 26, 0.06) 1px, transparent 1px);
  background-size: 7px 7px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

h1,
h2,
h3 {
  font-family: var(--schrift-fett);
  margin: 0 0 0.4em;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 0.6em;
  line-height: 1.5;
}

/* --- Pill-Buttons (oben rechts) --- */
.pill {
  font-family: var(--schrift-fett);
  font-size: 0.9rem;
  color: var(--tinte);
  background: var(--creme);
  border: var(--kontur);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  cursor: pointer;
  box-shadow: var(--schatten-versatz-klein);
  transition: transform 0.08s ease, background 0.15s ease;
}
.pill:hover {
  transform: translate(-1px, -1px);
}
.pill:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.pill.aktiv {
  background: var(--petrol);
  color: #fff;
}

/* --- Ortslabel (oben links) --- */
.ort-label {
  display: inline-block;
  font-family: var(--schrift-fett);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--senf);
  border: var(--kontur);
  border-radius: var(--radius-klein);
  padding: 0.3em 0.7em;
  box-shadow: var(--schatten-versatz-klein);
}

/* --- Großer Button --- */
.btn {
  font-family: var(--schrift-fett);
  font-size: 1.15rem;
  color: var(--tinte);
  background: var(--senf);
  border: var(--kontur-dick);
  border-radius: var(--radius);
  padding: 0.7em 1.2em;
  cursor: pointer;
  box-shadow: var(--schatten-versatz);
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
}
.btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--schatten-versatz-klein);
}
.btn-primaer {
  background: var(--petrol);
  color: #fff;
}
.btn-korall {
  background: var(--korall);
  color: #fff;
}
.btn-klein {
  font-size: 0.95rem;
  padding: 0.45em 0.9em;
  box-shadow: var(--schatten-versatz-klein);
}

/* --- Karte --- */
.karte {
  background: var(--creme);
  border: var(--kontur-dick);
  border-radius: var(--radius);
  box-shadow: var(--schatten-versatz);
  padding: var(--abstand);
}

/* --- Eingabefeld --- */
.feld {
  font-family: var(--schrift-serif);
  font-size: 1.1rem;
  width: 100%;
  padding: 0.65em 0.75em;
  background: #fff;
  border: var(--kontur);
  border-radius: var(--radius-klein);
  box-shadow: inset 2px 2px 0 rgba(26, 26, 26, 0.12);
  color: var(--tinte);
}
.feld:focus {
  outline: 3px solid var(--petrol);
  outline-offset: 1px;
}

/* --- Avatar --- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- Spieler-Chip --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--creme);
  border: var(--kontur);
  border-radius: 999px;
  padding: 0.25em 0.8em 0.25em 0.3em;
  box-shadow: var(--schatten-versatz-klein);
  font-family: var(--schrift-fett);
  font-size: 1rem;
}
.chip .avatar {
  width: 34px;
  height: 34px;
}
.chip .punkte {
  background: var(--aubergine);
  color: #fff;
  border-radius: 999px;
  padding: 0.1em 0.55em;
  font-size: 0.85rem;
}
.chip.vip {
  background: var(--senf);
}
.chip.offline {
  opacity: 0.55;
}
.chip .vip-marke {
  font-size: 0.7rem;
  background: var(--korall);
  color: #fff;
  border-radius: 999px;
  padding: 0.05em 0.5em;
  letter-spacing: 0.06em;
}
.chip.pop {
  animation: pop-in 0.4s cubic-bezier(0.2, 1.4, 0.5, 1) both;
}

/* --- Dialogbox (Textbox) --- */
.dialogbox {
  background: var(--creme);
  border: var(--kontur-dick);
  border-radius: var(--radius);
  box-shadow: var(--schatten-versatz);
  padding: 1.4em 1.2em 1.1em;
  position: relative;
}
.sprecher-label {
  position: absolute;
  top: -0.9em;
  left: 1.2em;
  background: var(--gruen-label);
  color: #fff;
  border: var(--kontur);
  border-radius: var(--radius-klein);
  padding: 0.2em 0.7em;
  font-family: var(--schrift-fett);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dialog-text {
  font-size: 1.5rem;
  line-height: 1.4;
  min-height: 3.5em;
  margin: 0;
}
.dialog-weiter {
  position: absolute;
  right: 1em;
  bottom: 0.8em;
}
.dialog-weiter span {
  display: inline-block;
  animation: hüpfen 1s ease-in-out infinite;
}

/* --- Timer --- */
.timer {
  font-family: var(--schrift-fett);
  font-size: 1.3rem;
  background: var(--korall);
  color: #fff;
  border: var(--kontur);
  border-radius: var(--radius-klein);
  padding: 0.15em 0.7em;
  box-shadow: var(--schatten-versatz-klein);
  display: inline-block;
  min-width: 3.2em;
  text-align: center;
}

/* --- Auswahl-Buttons --- */
.option {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--schrift-serif);
  font-size: 1.2rem;
  background: var(--creme);
  border: var(--kontur-dick);
  border-radius: var(--radius);
  box-shadow: var(--schatten-versatz-klein);
  padding: 0.8em 0.9em;
  margin-bottom: 0.7em;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease;
}
.option:hover {
  transform: translate(-1px, -1px);
}
.option.gewaehlt {
  background: var(--petrol);
  color: #fff;
}
.option.eigene,
.option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.option.eigene::after {
  content: ' (deine Lüge)';
  font-size: 0.8em;
  font-style: italic;
}

/* --- Toast --- */
.toast-schicht {
  position: fixed;
  top: 1em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  pointer-events: none;
}
.toast {
  background: var(--korall);
  color: #fff;
  border: var(--kontur);
  border-radius: var(--radius);
  box-shadow: var(--schatten-versatz);
  padding: 0.7em 1.1em;
  font-family: var(--schrift-fett);
  font-size: 1rem;
  max-width: 90vw;
  animation: pop-in 0.3s ease both;
}

/* --- Overlay (Notizen/Menü) --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5em;
  z-index: 900;
}
.overlay.versteckt {
  display: none;
}
.overlay .karte {
  max-width: 46rem;
  max-height: 85vh;
  overflow: auto;
}

/* --- Hilfsklassen --- */
.versteckt {
  display: none !important;
}
.zentriert {
  text-align: center;
}
.reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  align-items: center;
}
.spalte {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.dehnbar {
  flex: 1 1 auto;
}
.abstand-oben {
  margin-top: var(--abstand);
}

/* --- Animationen --- */
@keyframes pop-in {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes hüpfen {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes wackeln {
  0%,
  100% {
    transform: rotate(-1.5deg);
  }
  50% {
    transform: rotate(1.5deg);
  }
}
.wackeln {
  animation: wackeln 0.5s ease-in-out 2;
}

/* Barrierefreiheit: reduzierte Bewegung respektieren */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
