*{
      box-sizing: border-box;
      
    }
    html, body {
      width: 100%;
      min-height: 100vh;
      margin: 0;
      padding: 0;
    }
    body {
      font-family: Arial, sans-serif;
      padding: 50px;
      background: #fff;
      background-image: url('bg_summer2.jpg');
      background-size: cover;
      background-position: top center;
      background-repeat: no-repeat;
    }
    h1 {
      text-align: center;
      margin: 0;
    }
    #openDialogBtn, .btn {
      display: block;
      padding: 0.7rem 1.2rem;
      font-size: 1rem;
      cursor: pointer;
      background-color: #018CCD;
      color: #ffffff;
      border-radius: 5px;
      box-shadow: none;
      border: none;
    }
    dialog {
      border: none;
      border-radius: 12px;
      padding: 2rem;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
      max-width: 600px;
      width: 90%;
    }
    #closeDialogBtn {
      position: absolute;
      top: 10px;
      right: 10px;
      font-size: 1.2rem;
      background: none;
      border: none;
      cursor: pointer;
    }
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 1rem;
      margin-top: 1.5rem;
    }
    .form-grid label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #444;
}

.form-grid input[type="text"],
.form-grid input[type="number"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-grid input[type="text"]:focus,
.form-grid input[type="number"]:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

    .track {
      position: relative;
      height: 50px;
      background: transparent;
      border-radius: 10px;
      margin-bottom: 50px;
    }
    .progress {
      position: absolute;
      height: 100%;
      min-width: 4%;
      background: rgba(76, 175, 80,.85);
      display: flex;
      align-items: center;
      transition: all 5s ease-in-out;
      bottom: 0;
      border-radius: 10px;
      backdrop-filter: blur(5px);
    }
    .horse {
      width: 40px;
      height: 40px;
      margin-left: auto;
      margin-right: 5px;
    }
    .horse svg {
      width: 100%;
      height: 100%;
    }
    .label {
      position: absolute;
      left: 10px;
      bottom: 100%;
      transform: translateY(-50%);
      font-weight: bold;
      color: #333;
    }
    button[type="submit"] {
      padding: 0.5rem 1rem;
      font-size: 1rem;
      cursor: pointer;
      grid-column: span 3;
      margin-top: 1rem;
    }
    .header{
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: 40px;
      margin-bottom: 50px;
    }
    .logo{
      height: 35px;
    }
    @media screen and (max-width: 580px) {
      .header{
        justify-content: center;
      }
    }
    .menuBtn, #load-db-btn, .logout {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #018CCD;
  color: white;
  font-size: 1.5rem;
  padding: 0.7rem 1rem;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1000;
  border: none;
}

#load-db-btn{
  right: auto;
  left: 20px;
}

.logout{
    top: 20px;
    left: 20px;
    right: auto;
    bottom: auto;
    padding: 10px;
    font-size: 1em;
}
.logout svg{
    width: 20px;
    height: 20px;
}
.tagAnlage{
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #efefef;
}
.tagAnlage input[type="date"], .dateform {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #f9f9f9;
  color: #333;
  padding: 0.65em 1em;
  border: 1px solid #a8a8a8;
  border-radius: 8px;
  font-size: 1.07em;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  outline: none;
  width: 190px;
  min-width: 120px;
  max-width: 100%;
}

.tagAnlage input[type="date"]:focus, .dateform:focus {
  border-color: #018CCD;
  box-shadow: 0 0 0 2px rgba(1, 140, 205, 0.15);
  background: #fff;
}

.tagAnlage input[type="date"]::-webkit-input-placeholder, .dateform::-webkit-input-placeholder { color: #bbb; }
.tagAnlage input[type="date"]:-ms-input-placeholder, .dateform:-ms-input-placeholder { color: #bbb; }
.tagAnlage input[type="date"]::placeholder, .dateform::placeholder { color: #bbb; }

/* Chrome zeigt ein Kalender-Icon – du kannst es mit dieser Zeile ausblenden (optional): */
.tagAnlage input[type="date"]::-webkit-calendar-picker-indicator, .dateform::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
  transition: filter 0.3s;
}

.tagAnlage input[type="date"]:hover::-webkit-calendar-picker-indicator, .dateform:hover::-webkit-calendar-picker-indicator {
  filter: invert(0.4);
}

/* Für Firefox: */
@-moz-document url-prefix() {
  .tagAnlage input[type="date"], .dateform {
    padding-right: 1em;
  }
}

#dateCreateMsg{
margin-top:0.6em;color:#d00;font-size:0.97em;
width: 100%;
}


.loginbox{
  width: 100%;
  max-width: 500px;
  margin: auto;
}

.loginbox input[type="password"] {
  width: 100%;
  max-width: 500px;
  margin: auto;
  padding: 0.65em 0.95em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 1.1em;
  color: #222;
}

.loginbox input[type="password"]:focus {
  outline: none;
  border-color: #018CCD;
  box-shadow: 0 0 0 3px rgba(1, 140, 205, 0.13);
  background: #fff;
}

.loginbox button[type="submit"] {
  width: 100%;
  padding: 0.7em 0;
  font-size: 1.07em;
  cursor: pointer;
  background-color: #018CCD;
  color: #ffffff;
  border-radius: 6px;
  border: none;
  box-shadow: 0 2px 7px rgba(1,140,205,0.09);
  transition: background 0.2s;
}

.loginbox button[type="submit"]:hover,
.loginbox button[type="submit"]:focus {
  background-color: #136cb5;
}

.loginbox .error {
  color: #c00;
  font-size: 1em;
  margin-bottom: 1em;
  min-height: 1.5em;
}
