body {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

header {
  background-color: #4caf50;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
  margin: 0;
  font-size: 24px;
}

main {
  width: 90%;
  max-width: 600px;
  margin: 20px auto;
}

.form-container,
.room {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* Eingabefelder nicht breiter als der Container */
input,
select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
}

button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: none;
  background-color: #4caf50;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

button:hover {
  background-color: #45a049;
}

.link {
  font-weight: bold;
  color: #4caf50;
  cursor: pointer;
  word-break: break-all;
}

/* Eigene Namensanpassung: Name mit Bleistift-Icon */
.user-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.user-info span {
  font-size: 16px;
  font-weight: bold;
}
.user-info button {
  width: auto;
  padding: 5px 10px;
  font-size: 16px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Teilnehmerliste als Grid in zwei Spalten */
.participants-container {
  margin: 20px 0;
}
.participants-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.participants-list li {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  display: flex;
  align-items: center;
}
.avatar {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #4caf50;
  color: #fff;
  font-weight: bold;
  margin-right: 10px;
}
.participant-name {
  flex: 1;
  font-weight: bold;
}
.participant-status {
  font-size: 20px;
  font-weight: bold;
}
.tip-given {
  color: #4caf50;
}
.tip-missing {
  color: #f44336;
}

/* Karten */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.card {
  width: 100px;
  height: 150px;
  border-radius: 10px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  background-color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.2);
}
.card.selected {
  border: 3px solid #4caf50;
  box-shadow: 0 0 10px rgba(76,175,80,0.5);
  transform: scale(1.1);
}
.card.visible {
  background-color: #4caf50;
  color: #fff;
}

/* QR-Code */
.qr-code {
  margin: 20px 0;
  text-align: center;
}

/* Timer */
.timer-container {
  background: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 20px;
}
.timer-display {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
}

/* Historie und Diagramm */
.history,
.chart-container {
  background: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 15px;
  margin: 20px 0;
}

/* Responsives Design */
@media (max-width: 600px) {
  .card {
    width: 80px;
    height: 120px;
    font-size: 20px;
  }
}
.round-history {
  border-top: 1px solid #ccc;
  padding-top: 10px;
  margin-top: 10px;
}
.round-history h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
}
.round-history ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.round-history li {
  font-size: 14px;
}
