* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 10px;
}

.container {
  text-align: center;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 26px;
  margin-bottom: 20px;
  color: #333;
}

form input {
  padding: 15px;
  font-size: 1.2rem;
  width: 100%;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

form button {
  padding: 15px 30px;
  font-size: 1.2rem;
  cursor: pointer;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  width: 100%;
  margin-top: 10px;
}

form button:hover {
  background-color: #45a049;
}

.camera {
  margin-top: 30px;
}

#startScan {
  background-color: #2196F3;
  color: white;
  padding: 15px 30px;
  font-size: 1.2rem;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  width: 100%;
}

#startScan:hover {
  background-color: #1E88E5;
}

/* Anpassungen für kleine Geräte (Smartphones) */
@media (max-width: 600px) {
  body {
    padding: 10px;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .container {
    max-width: 90%;
    width: 100%;
    padding: 20px;
  }

  h1 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  form input,
  form button,
  #startScan {
    font-size: 1.2rem;
    padding: 15px;
    max-width: 100%;
  }
}

/* Schriften und Boxen anpassen für größere Geräte */
@media (min-width: 601px) {
  body {
    justify-content: center;
    align-items: center;
  }

  .container {
    max-width: 500px;
    width: 100%;
  }
}

    /* Container für Ticketdaten */
    .ticket-data-container {
        padding: 15px;
        border-radius: 10px; /* Leicht abgerundete Ecken */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
        margin-top: 20px;
    }

    /* Erfolgsstatus */
    .ticket-data-container.success {
        background-color: #8bc34a; /* Grün */
    }

    /* Fehlerstatus */
    .ticket-data-container.error {
        background-color: #f44336; /* Rot */
    }

    /* Bereits gescannt */
    .ticket-data-container.scanned {
        background-color: #ffeb3b; /* Gelb */
    }

    /* Statusmeldung hervorheben */
    .ticket-data-container .status {
        font-size: 18px;
        color: #fff; /* Weiß für den Text */
        font-weight: bold;
    }

    /* Optional: Hervorheben von Button- und Statusbereichen */
    .ticket-data-container button {
        background-color: #4CAF50; /* Grüner Hintergrund für Button */
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 5px; /* Abgerundete Ecken für Buttons */
        cursor: pointer;
    }

    .ticket-data-container button:hover {
        background-color: #45a049; /* Dunklerer Grünton bei Hover */
    }