body {
  font-family: Arial, sans-serif;
  padding: 20px;
  margin: auto;
  max-width: 960px;
}

.logo-text-container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo-text-container img {
  max-width: 100%;
  height: auto;
}

.headline-text {
  font-size: 2em;
  margin: 0;
  white-space: nowrap;
}

.spiel-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.spielbereich {
  border: 2px solid #444;
  border-radius: 10px;
  background: white;
  padding: 12px 15px 20px 15px;
  width: 420px;
}

.zug {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  justify-content: space-between;
  border-radius: 6px;
  padding: 6px 10px;
}

.zug:nth-child(odd) {
  background-color: #fafafa;
}

.zug:nth-child(even) {
  background-color: #e9ecef;
}

.farben {
  display: flex;
  gap: 8px;
}

.farbe {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #999;
  cursor: pointer;
}

.farbenwahl {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 15px 0;
  padding: 12px;
  border: 2px solid #444;
  border-radius: 10px;
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.farbenwahl .farbe {
  width: 45px;
  height: 45px;
  }

.auswertung {
  display: flex;
  gap: 6px;
  margin-left: 15px;
}

.punkt {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #555;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

.punkt.schwarz {
  background: black;
}

.punkt.weiss {
  background: white;
}

button {
  padding: 10px 22px;
  font-weight: bold;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 12px 6px 15px 6px;
}

#tippenButton {
  background: #007bff;
  color: white;
}

#tippenButton:disabled {
  background: #bbb;
  cursor: default;
}

#tippenButton:hover:not(:disabled) {
  background: #0056b3;
}

#neuButton {
  background: #28a745;
  color: white;
}

#neuButton:hover {
  background: #1e7e34;
}

#hilfeButton {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: bold;
  background: #ffc107;
  color: black;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
}

.hilfe-schliessen-btn {
  display: block;
  margin: 15px auto 5px auto;
  padding: 8px 16px;
  font-size: 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.hilfe-schliessen-btn:hover {
  background-color: #0056b3;
}

#aktuellerTipp {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  gap: 10px;
}

#aktuellerTipp .farbe {
  border: 2px solid #666;
}

#aktuellerTipp .farbe:hover {
  border-color: #d9534f;
  cursor: pointer;
}

.spiel-ende-box {
  flex: 0 1 300px;
  background-color: #fff3cd;
  border: 2px solid #ffeeba;
  color: #856404;
  padding: 16px;
  border-radius: 10px;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  text-align: center;
  animation: fadeInBox 0.5s ease-in-out;
}

.spiel-ende-box button {
  background-color: #856404;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
}

/* Modernisiere jQuery UI Dialog */
.ui-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.ui-dialog-titlebar {
  display: none; /* Titelleiste entfernen */
  color: #006600;
}

.ui-dialog-content {
  padding: 20px;
  background: #fff;
  font-size: 1rem;
  border-radius: 12px;
}

.ui-dialog .ui-widget-content {
  background: #ffffff;
  border: none;
}

.ui-dialog .ui-accordion .ui-accordion-header {
  background-color: #f0f0f0;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 5px;
}

.ui-dialog .ui-accordion .ui-accordion-content {
  padding: 10px;
  border: none;
  background: #fcfcfc;
  border-radius: 8px;
  margin-bottom: 10px;
}

.highscore-box {
  background: #fffdf9;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 10px 15px;
  margin-top: 20px;
  font-size: 0.85rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.highscore-box h3 {
  margin-top: 0;
  font-size: 1rem;
}
.highscore-box ol {
  margin: 0;
  padding-left: 20px;
}

@keyframes fadeInBox {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}