/* Aussehen nach design/STYLE.md und design/entwuerfe/ (start-handy.html, start-pc.html).
   Handy ist die Grundlage, ab 900 px Breite gilt der PC-Entwurf. */

:root {
  --rahmen: 3px;
  --logo-rahmen: 3px;
  --logo-schatten: 3px;
  --logo-pad: 4px 10px;
  --logo-mc: 20px;
  --logo-network: 14px;
  --logo-spur: 0.22em;
  --logo-gap: 10px;
  --games: clamp(60px, 22vw, 86px);
  --games-schatten: 5px;
  --games-rahmen: 3px;
  --games-abstand: 8px;
  --slogan: 18px;
  --slogan-breite: 300px;
  --icon: 44px;
  --icon-gap: 14px;
}

/* ---------- Seite (Handy) ---------- */
.seite {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.intro { display: flex; flex-direction: column; gap: 22px; }

/* ---------- Logo ---------- */
.logo { display: flex; flex-direction: column; align-items: flex-start; line-height: 0.9; }
.logo-zeile { display: flex; align-items: center; gap: var(--logo-gap); }
.logo-mc {
  background: var(--tomate);
  color: var(--tinte);
  border: var(--logo-rahmen) solid var(--tinte);
  box-shadow: var(--logo-schatten) var(--logo-schatten) 0 var(--tinte);
  padding: var(--logo-pad);
  font-family: "Alfa Slab One", serif;
  font-size: var(--logo-mc);
  transform: rotate(-3deg);
}
.logo-network {
  font-weight: 900;
  letter-spacing: var(--logo-spur);
  font-size: var(--logo-network);
  color: var(--papier);
}
.logo-games {
  margin: var(--games-abstand) 0 0;
  font-family: "Alfa Slab One", serif;
  font-weight: 400;
  font-size: var(--games);
  line-height: 0.9;
  color: var(--gelb);
  text-shadow: var(--games-schatten) var(--games-schatten) 0 var(--tinte);
  -webkit-text-stroke: var(--games-rahmen) var(--tinte);
  paint-order: stroke fill;
}

.slogan {
  margin: 0;
  max-width: var(--slogan-breite);
  font-size: var(--slogan);
  line-height: 1.4;
  font-weight: 700;
}

.zeichen { display: flex; gap: var(--icon-gap); align-items: center; }
.icon { width: var(--icon); height: var(--icon); }
.icon-karte { filter: drop-shadow(3px 3px 0 var(--schatten)); }

/* ---------- Karte mit Username ---------- */
.karte {
  background: var(--karton);
  color: var(--tinte);
  border: 3px solid var(--tinte);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--schatten);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.karte-titel { font-family: "Alfa Slab One", serif; font-size: 22px; }

.karte input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  background: var(--papier);
  color: var(--tinte);
  border: 3px solid var(--tinte);
  border-radius: 10px;
  font-family: "Chivo", sans-serif;
  font-size: 20px;
  font-weight: 700;
  outline: none;
}
.karte input::placeholder { color: var(--braun); }
.karte input:focus-visible { background: var(--gelb); }

.hinweis { font-size: 14px; color: var(--braun); font-weight: 700; }

/* Mensch-Check (nur Anzeige) */
.mensch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 6px 14px;
  background: var(--papier);
  color: var(--tinte);
  border: 3px solid var(--tinte);
  border-radius: 10px;
}
.mensch-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}
.mensch-ring { width: 32px; height: 32px; }
.mensch-rechts {
  font-size: 11px;
  font-weight: 700;
  color: var(--braun);
  text-align: right;
  line-height: 1.2;
}

.fehler {
  margin: 0;
  padding: 8px 12px;
  background: var(--tomate);
  border: 3px solid var(--tinte);
  border-radius: 10px;
  font-weight: 700;
}

.karte .karte-titel { margin: 0; }
.karte p { margin: 0; }

/* Wiederherstellungscode (wird nur einmal angezeigt) */
.code {
  padding: 14px 10px;
  background: var(--papier);
  border: 3px solid var(--tinte);
  border-radius: 10px;
  font-family: "Bowlby One", sans-serif;
  font-size: 26px;
  letter-spacing: 0.06em;
  text-align: center;
  user-select: all;
}

/* Lobby */
.seite-lobby { justify-content: center; }
.lobby-gruss {
  margin: 0;
  font-family: "Alfa Slab One", serif;
  font-weight: 400;
  font-size: 40px;
  color: var(--gelb);
  text-shadow: 4px 4px 0 var(--tinte);
  overflow-wrap: anywhere;
}

.knopf {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 6px;
  height: 58px;
  background: var(--tomate);
  color: var(--tinte);
  border: 3px solid var(--tinte);
  border-radius: 10px;
  box-shadow: 0 5px 0 var(--tinte);
  font-family: "Alfa Slab One", serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.knopf:focus-visible { outline: 3px solid var(--papier); outline-offset: 3px; }
.knopf:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--tinte); }
.knopf:disabled { background: #3A5A50; color: var(--gruengrau); cursor: default; }

.fuss-handy {
  margin: auto 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--gruengrau);
}
.karte .fuss {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--braun);
  font-weight: 700;
}

/* ---------- PC ---------- */
@media (min-width: 900px) {
  :root {
    --rahmen: 4px;
    --logo-rahmen: 4px;
    --logo-schatten: 5px;
    --logo-pad: 6px 16px;
    --logo-mc: 30px;
    --logo-network: 20px;
    --logo-spur: 0.24em;
    --logo-gap: 14px;
    --games: clamp(88px, 12vw, 150px);
    --games-schatten: 7px;
    --games-rahmen: 4px;
    --games-abstand: 12px;
    --slogan: 22px;
    --slogan-breite: 480px;
    --icon: 64px;
    --icon-gap: 18px;
  }

  /* display: revert würde bei Elementen mit eigener Anzeige stören, daher gezielt: */
  .icon.nur-pc { display: block; }

  .seite {
    max-width: none;
    min-height: 100vh;
    padding: 56px 64px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 56px;
  }

  .intro { flex: 1 1 460px; max-width: 640px; align-items: flex-start; gap: 28px; }

  .karte {
    flex: 1 1 380px;
    max-width: 460px;
    border-width: 4px;
    border-radius: 18px;
    box-shadow: 8px 8px 0 var(--schatten);
    padding: 32px 30px 30px;
    gap: 12px;
  }
  .karte-titel { font-size: 32px; }
  .karte input { height: 64px; padding: 0 18px; border-width: 4px; border-radius: 12px; font-size: 22px; }
  .hinweis { font-size: 15px; }
  .mensch { min-height: 62px; border-width: 4px; }
  .mensch-links { gap: 12px; font-size: 19px; }
  .mensch-ring { width: 40px; height: 40px; }
  .mensch-rechts { font-size: 12px; }
  .fehler { border-width: 4px; }
  .code { border-width: 4px; font-size: 32px; }
  .lobby-gruss { font-size: 56px; }
  .knopf { margin-top: 8px; height: 66px; border-width: 4px; border-radius: 12px; box-shadow: 0 6px 0 var(--tinte); font-size: 26px; }
  .knopf:active { box-shadow: 0 4px 0 var(--tinte); }
}

.fuss-links { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.8; color: var(--gruengrau); text-align: center; }
.fuss-links a { color: var(--gruengrau); }
