body {
    font-family: Arial, sans-serif;
    background:#f4f4f4;
    margin:0;
    padding:20px;
    text-align:center;
  }
  h1 {
    margin-bottom:20px;
  }
  .grid {
    display:grid;
    gap:20px;
    max-width:400px;
    margin:auto;
  }
  .tile {
    padding:20px;
    font-size:1.2em;
    font-weight:bold;
    border-radius:10px;
    color:white;
    text-decoration:none;
    cursor:pointer;
  }
  .regular { background:#28a745; }
  .snack   { background:#dc3545; }
  #result {
    margin-top:20px;
    font-weight:bold;
  }
  .view.hidden {
    display: none;
  }
  .grid {
    display: grid;
    gap: 20px;
    max-width: 400px;
    margin: auto;
  }
  .tile {
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 10px;
    color: white;
    cursor: pointer;
  }
  .regular { background: #28a745; }
  .snack { background: #dc3545; }
  .healthy { background: #17a2b8; }
  .neutral { background: #ffc107; color: black; }
  .unhealthy { background: #ff5722; }
  .chocolate { background: #6f42c1; }
  .cake { background: #e83e8c; }
  .fat { background: #795548; }
  .sugar { background: #20c997; }
  .other { background: #343a40; }
  button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    cursor: pointer;
  }
  button:hover {
    background: #0056b3;
  }
  #result {
    margin-top: 20px;
    font-weight: bold;
  }
  .countdown {
    font-size: 3em;
    margin: 20px 0;
    font-weight: bold;
  }
  .btn-fail {
    background:#dc3545; color:white; padding:15px; border:none; border-radius:8px; font-size:1em;
  }
  .btn-extend {
    background:#ffc107; color:black; padding:15px; border:none; border-radius:8px; font-size:1em;
  }
  .btn-success {
    background:#28a745; color:white; padding:15px; border:none; border-radius:8px; font-size:1em;
  }
  .grid button {
    cursor:pointer;
  }
  button:disabled {
    background: #cccccc !important;  /* grauer Hintergrund */
    color: #666666 !important;       /* dunklere Schrift */
    opacity: 1;                      /* normale Deckkraft */
    cursor: not-allowed;
  }
  form {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
  }
  form h3 {
    margin-top: 0;
  }
  form input {
    margin: 5px 0;
    padding: 8px;
    width: 80%;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  form button {
    margin-top: 10px;
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }
  form button:hover {
    background: #0056b3;
  }
/* Views */
.view {
    margin-top: 20px;
  }
  
  .hidden {
    display: none;
  }
  
  /* Input-Felder im Kachel-Stil */
  input[type="email"],
  input[type="password"] {
    display: block;
    width: 80%;
    margin: 10px auto;
    padding: 15px;
    font-size: 1.1em;
    border-radius: 10px;
    border: 2px solid #ccc;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
  }
  
  input[type="email"]:focus,
  input[type="password"]:focus {
    border-color: #007bff;
  }
  
  /* Buttons im Kachel-Look */
  button {
    display: block;
    margin: 10px auto;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 80%;
  }
  
  button:hover:not(:disabled) {
    opacity: 0.9;
  }
  
  /* Status-Buttons */
  .btn-fail { background: #dc3545; color: white; }
  .btn-extend { background: #ffc107; color: black; }
  .btn-success { background: #28a745; color: white; }
  button:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
  }
  
  .btn-water {
    background: #00bfff; /* Türkis/Blau */
    color: white;
  }
  .btn-water.taken {
    background: #1e90ff; /* dunkler Blau, wenn geklickt */
  }
  

  /* Login/Registrierung separat */
  #loginView h2, #registerView h2 {
    margin-bottom: 10px;
  }
      
  .overlay {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.9);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
  }
  .overlay img {
    max-width:90%;
    max-height:90%;
    border-radius:10px;
    box-shadow:0 0 20px rgba(255,255,255,0.5);
  }
  
  /* Einkauf-Kacheln */
.tile.euro {
  background: #f1f1f1;   /* hellgrauer Hintergrund */
  color: #222;           /* dunkle Schrift */
  font-weight: bold;
  font-size: 1.5em;
  border: 2px solid #ccc;
}

.tile.euro:hover {
  background: #ddd;      /* beim Hover etwas dunkler */
}

.btn-small {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 12px;
  background: #eee;
  color: #333;
  font-size: 1em;
  border: 1px solid #ccc;
  cursor: pointer;
  width: auto;          /* nicht mehr volle Breite */
  min-width: 120px;     /* feste Mindestbreite */
  text-align: center;
}

.btn-small:hover {
  background: #ddd;
}

.upload-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.upload-form input[type="file"] {
  width: 140px;
  font-size: 0.85em;
}

.upload-form button {
  padding: 6px 10px;
  border-radius: 6px;
  background: #eee;
  border: 1px solid #ccc;
  font-size: 0.85em;
  cursor: pointer;
}

.upload-form button:hover {
  background: #ddd;
}

.upload-tile {
  display: block;
  width: 100%;
  max-width: 320px;        /* gleiche Breite wie deine normalen Kacheln */
  margin: 10px auto;
  padding: 12px;
  border-radius: 12px;
  background: #f1f1f1;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.upload-tile input[type="file"] {
  display: block;
  margin: 6px auto;
}

.upload-tile button {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #4CAF50;
  color: white;
  font-size: 1em;
  cursor: pointer;
}

.upload-tile button:hover {
  background: #43a047;
}

.tile.euro1 {
  background: #4CAF50;   /* grün */
  color: #fff;
}

.tile.euro2 {
  background: #2196F3;   /* blau */
  color: #fff;
}

.tile.euro5 {
  background: #E91E63;   /* pink/rot */
  color: #fff;
}

.tile.euro1:hover,
.tile.euro2:hover,
.tile.euro5:hover{
  opacity: 0.85;
}
