/* Grundlegendes Styling für die Seite */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

h1, h2 {
  color: #333;
}

.form-box {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Abstand zwischen den Eingabefeldern */
}

input {
  padding: 10px;
  font-size: 14px;
  margin-bottom: 10px; /* Abstand zwischen den Eingabefeldern */
  border-radius: 4px;
  border: 1px solid #ccc;
}

button {
  padding: 10px;
  font-size: 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #45a049;
}

p {
  font-size: 14px;
  margin-top: 20px;
}

/* Fehlernachricht */
div {
  color: rgb(59, 59, 59);
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}


/* Responsive Design für mobile Geräte */
@media (max-width: 600px) {
  body, html {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: auto;
  }

  .container {
    max-width: 100%;
    margin-top: 20px;
  }

  .form-box input, .form-box button {
    padding: 15px;
  }

  h1 {
    font-size: 1.8em;
  }
}

/* Für große Buttons und Startseite */
.big-button {
  font-size: 1.5em;
  padding: 15px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.big-button:hover {
  background-color: #218838;
}

footer {
  text-align: center;
  font-size: 0.9em;
  color: #777;
  margin-top: 20px;
}

/* In styles.css */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
}

.message-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 400px;
  width: 100%;
}

h1 {
  color: #4CAF50;
}

p {
  color: #333;
}

/* Standard Button für Besuch Eintragen */
.btn-record-visit {
  background-color: #28a745; /* Grüne Farbe */
  color: white;
  font-size: 18px;
  padding: 15px 30px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  width: 100%;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.btn-record-visit:hover {
  background-color: #218838; /* Dunklere grüne Farbe beim Hover */
}

/* Button wenn Besuch schon eingetragen wurde */
.btn-visit-recorded {
  background-color: #6c757d; /* Graue Farbe */
  color: white;
  font-size: 18px;
  padding: 15px 30px;
  border-radius: 8px;
  width: 100%;
  border: none;
  cursor: not-allowed;
}


/* Grundlegendes Styling für die Seite */
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Styling für den Container des Menüs */
.menu-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.menu-container h1 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

.menu-container p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.menu-container ul {
  list-style-type: none;
  padding: 0;
}

.menu-container ul li {
  margin: 10px 0;
}

.menu-container ul li a {
  text-decoration: none;
  color: #ffffff;
  background-color: #4CAF50; /* Grüner Hintergrund */
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  display: block;
  text-align: center;
  transition: background-color 0.3s ease;
}

.menu-container ul li a:hover {
  background-color: #45a049; /* Dunkleres Grün beim Hover */
}

/* Styling für den Logout-Button */
.logout-link {
  background-color: #ff4d4d; /* Roter Hintergrund */
  color: white;
}

.logout-link:hover {
  background-color: #cc0000; /* Dunkleres Rot beim Hover */
}

/* Responsives Design */
@media (max-width: 600px) {
  .menu-container {
    padding: 20px;
    width: 90%;
    max-width: 300px;
  }

  .menu-container h1 {
    font-size: 20px;
  }

  .menu-container p {
    font-size: 14px;
  }
}

/* Styling für den Container */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  width: 100%;
  max-width: 500px; /* Maximalbreite auf Desktop */
  margin: 0 auto; /* Zentrierung */
}

/* Formularelemente mittig auf mobilen Geräten */
.form-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

input[type="text"], input[type="password"] {
  width: 100%; /* 100% Breite für die Felder */
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box; /* Stellt sicher, dass Padding zur Gesamtbreite zählt */
}

button[type="submit"] {
  width: 100%; /* Auch der Button soll 100% der Breite einnehmen */
  padding: 10px;
  margin: 10px 0;
  background-color: #4CAF50; /* Grüner Hintergrund */
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #45a049; /* Dunkleres Grün bei Hover */
}

/* Anpassungen für kleine Bildschirme (Mobil) */
@media (max-width: 600px) {
  .container {
    max-width: 90%; /* Container hat eine maximale Breite von 90% des Bildschirms */
  }

  .form-box {
    width: 100%; /* Die Formularelemente sollen die volle Breite des Containers einnehmen */
  }
}
.star-rating {
  display: inline-block;
  direction: ltr;
  font-size: 18px;
}

.star {
  color: #ccc;
  margin: 0 1px;
}

.star.selected {
  color: #f5c518; /* Gold */
}
.back-button {
  display: inline-block;
  background-color: #28a745;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #218838;
}
.stats-table {
  width: 100%;
  max-width: 700px;
  margin: auto;
  border-collapse: collapse;
  margin-top: 30px;
}

.stats-table th,
.stats-table td {
  padding: 12px;
  border: 1px solid #ddd;
  text-align: center;
}

.stats-table th {
  background-color: #f4f4f4;
}

.stats-table td:first-child {
  font-weight: bold;
}
.stats-table {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
}

.stats-table th, .stats-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.stats-table th a {
  text-decoration: none;
  color: black;
}


.leaderboard {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  font-family: sans-serif;
}

.leaderboard th, .leaderboard td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
}

.leaderboard th {
  background-color: #f0f0f0;
  cursor: pointer;
}

.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination a {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  text-decoration: none;
  background-color: #eee;
  border-radius: 4px;
}

.pagination a.active {
  background-color: #007BFF;
  color: white;
}
.gold {
  background-color: #ffd70055; /* Gold halbtransparent */
}

.silver {
  background-color: #c0c0c055;
}

.bronze {
  background-color: #cd7f3255;
}
/* Verbesserung Icons und Farben */
.pos {
  color: green;
  font-weight: bold;
}
.neg {
  color: red;
  font-weight: bold;
}
.neutral {
  color: #007BFF; /* Blau */
  font-weight: bold;
}

/* Einfache Pfeil/Circle-Icons */
.arrow.up::before {
  content: "▲"; /* Pfeil nach oben */
  margin-right: 4px;
}

.arrow.down::before {
  content: "▼"; /* Pfeil nach unten */
  margin-right: 4px;
}

.circle::before {
  content: "●"; /* Kreis */
  margin-right: 4px;
}
.table-wrapper {
  overflow-x: auto;
  padding: 1rem;              /* Weißer Rand */
  max-width: 100%;            /* Nie breiter als Viewport */
  box-sizing: border-box;
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
}
/* Zebra-Streifen für Tabellenzeilen ab Platz 4 (also nicht gold/silver/bronze) */
.leaderboard tr:not(.gold):not(.silver):not(.bronze):nth-child(even),
.stats-table tr:not(.gold):not(.silver):not(.bronze):nth-child(even) {
  background-color: #efefef;
}


