/* Seiten rund um den Spieltisch: Anmelden, Übersicht, Warteraum, Menü. Funktioniert hoch und quer. */

[hidden] { display: none !important; }

/* Pfad relativ zu dieser Datei (die Variable --holz aus tisch.css zeigt von hier aus ins Leere) */
:root { --holz-seiten: url("spiel/bilder/holz.webp"); }

.seite {
  position: fixed; inset: 0; overflow-y: auto;
  display: flex; align-items: flex-start; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px 24px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 220, 160, .10) 0%, rgba(0, 0, 0, .55) 100%),
    var(--holz-seiten) center / cover, #6b3b1a;
  user-select: text; -webkit-user-select: text;
}

.karte-papier {
  width: min(420px, 100%); margin: auto 0;
  padding: 22px 20px; border-radius: 16px;
  background: #fbf3df; color: #3a2312;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  display: flex; flex-direction: column; gap: 14px;
}
.karte-papier h1, .karte-papier h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; text-align: center; }
.karte-papier h1 { font-size: 28px; }
.karte-papier p { margin: 0; }
.karte-papier label { font-weight: 600; }
.karte-papier input {
  font: inherit; font-size: 18px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #b89a6a; background: #fff; color: #3a2312; width: 100%;
}
.karte-papier select {
  font: inherit; font-size: 17px; padding: 9px 10px; border-radius: 10px;
  border: 1px solid #b89a6a; background: #fff; color: #3a2312; width: 100%;
}
#code-eingabe { text-transform: uppercase; letter-spacing: 3px; }
.karte-papier form { display: flex; flex-direction: column; gap: 10px; }
.karte-papier .zeile, .karte-papier form.zeile { flex-direction: row; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.karte-papier form.zeile input { flex: 1; min-width: 0; }
.holz-knopf.breit { width: 100%; }
.link { font: inherit; background: none; border: 0; color: #7a4a1c; text-decoration: underline; cursor: pointer; padding: 4px; }
.fehler { color: #b3261e; font-weight: 600; min-height: 1.2em; }
.fehler:empty { display: none; }
.hinweis { font-size: 14px; text-align: center; }
.klein { font-size: 13px; opacity: .85; }
.status { text-align: center; font-weight: 600; }

.namen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
.namen .holz-knopf { width: 100%; }

.meine-tische { display: flex; flex-direction: column; gap: 8px; }
.meine-tische:empty { display: none; }
.meine-tische .holz-knopf { width: 100%; text-align: left; }

.tisch-code { letter-spacing: 3px; font-family: ui-monospace, Menlo, monospace; }

/* Warteraum: Personen in Sitzordnung (bis zu 7 Stellen) */
.personen-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.personen-liste li {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px; border-radius: 10px;
  border: 2px dashed #b89a6a; font-size: 15px; word-break: break-word;
}
.personen-liste li.besetzt { border-style: solid; background: #f3e2bd; font-weight: 600; }
.personen-liste li.ich { border-color: #2e7d32; background: #dcefd8; }
.personen-liste .nr { width: 1.4em; text-align: right; opacity: .6; font-weight: 400; }
.personen-liste small { font-weight: 400; font-size: 12px; opacity: .75; }
.personen-liste .rechts { margin-left: auto; }
.personen-liste li.bot { background: #e6ebf2; border-color: #6a7f9a; }
.personen-liste button { font: inherit; font-size: 13px; padding: 5px 8px; border-radius: 8px; border: 1px solid #7a4a1c; background: #fff; color: #3a2312; cursor: pointer; }

/* Am Tisch: wer pausiert */
.stand-schild .pausiert { opacity: .6; }
.info .schild.zuschauer { background: #2e5d33; color: #fff; max-width: 28vw; white-space: normal; }
.uebernehmen:empty { display: none; }
.uebernehmen { display: flex; flex-direction: column; gap: 6px; }

/* Menü im Spiel */
.menue-hintergrund {
  position: fixed; inset: 0; z-index: 600; background: rgba(0, 0, 0, .55);
  display: flex; align-items: center; justify-content: center; padding: 12px; overflow-y: auto;
}
.menue { max-height: 100%; overflow-y: auto; }
.freigeben { display: flex; flex-wrap: wrap; gap: 6px; }
.freigeben button { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 8px; border: 1px solid #7a4a1c; background: #fff; color: #3a2312; cursor: pointer; }
.runden-liste table { width: 100%; border-collapse: collapse; font-size: 13px; }
.runden-liste th, .runden-liste td { padding: 3px 4px; border-bottom: 1px solid #e0cfa8; text-align: right; }
.runden-liste th:first-child, .runden-liste td:first-child { text-align: left; }
.runden-liste tr.summe td { font-weight: 700; border-top: 2px solid #3a2312; }

/* Verbindung weg */
.verbindung {
  position: fixed; left: 50%; top: max(8px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 900;
  padding: 7px 14px; border-radius: 10px; background: #b3261e; color: #fff; font-weight: 600; font-size: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .5);
}
/* Neue Version am Server: gleich wird neu geladen */
.verbindung.neue-version { background: #2e7d32; }

/* Version der App, klein unten auf der Übersicht und im Menü */
.app-version { font-size: 11px; opacity: .55; text-align: center; }
