*{
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}
body{
     font-family: 'Inter', Helvetica, Arial, sans-serif;
  background: #f2f4f8;
  color: #333;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, p {

  padding-left: 5px;

}


h2{
    text-align: center;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    padding: 30px 0;
    font-weight: 600;
}

#btn_scanCard{

  display: none;

}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

.ButtonList {
  display: flex;
  flex-direction: column;
  align-items: center; /* Zentriert die Buttons horizontal */
  
  margin: 20px 0;
}

button {
    font-size: 18px;
  background: linear-gradient(145deg, #1c80d7, #1667b3);
  border: none;
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  width: 95%; /* Set a width if needed */
  display: block; /* Make the buttons appear below each other */
    
  }

  
  
  .ButtonList button:not(:last-child) {
    border-bottom: none; /* Prevent double borders */
  }
  
  /* Add a background color on hover */
  .ButtonList button:hover {
   transform: translateY(-2px);
  background: linear-gradient(145deg, #1a72c2, #155d9e);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  }

  .ButtonList button:active {
  transform: scale(0.98);
}


button.btn_red {

    background: linear-gradient(145deg, #d7221c, #b31b16);

}

button.btn_red:hover {

  background: linear-gradient(145deg, #b41c17, #911612);

}

button.btn_green {

    background: linear-gradient(145deg, #3ba55d, #267c43);

}

button.btn_green:hover {

  background: linear-gradient(145deg, #318b4e, #216939);

}

/* Table Styles */

table tbody {
    display: table;
    width: 100%;
}


/* Table Wrapper */
.table-wrapper {
  margin: 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
.fl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;

  display: block;
    overflow-x: auto;
    white-space: nowrap;
}

.fl-table th, .fl-table td {
  padding: 12px 15px;
  text-align: center;
}

.fl-table thead th {
  background: linear-gradient(145deg, #324960, #4FC3A1);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.fl-table tbody tr {
  transition: background 0.3s;
}

.fl-table tbody tr:nth-child(even) {
  background: #f8f9fb;
}

.fl-table tbody tr:hover {
  background: #eaf3ff;
}

/* Zustände */
.fl-table tr.stateOK {
  background-color: #d7f9e0;
  font-weight: 600;
  color: #1f7a34;
}

.fl-table tr.stateNormal {
  background-color: #e3e3e3;
  font-style: italic;
  color: #555;
}



#summe {
  display: inline-block;
  padding: 14px 28px;
  font-size: 30px;
  font-weight: 700;
  color: white;
  background: linear-gradient(145deg, #1c80d7, #1667b3);  
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 12px;
  text-align: center;
  letter-spacing: 1px;
  min-width: 200px;

}


/* Eingabefeld: "Gegebener Betrag" */
#given {
  font-size: 24px;
  font-weight: 600;
  color: #1e3a5f;
  background: #ffffff;
  border: 2px solid #1c80d7;
  border-radius: 10px;
  padding: 12px 18px;
  width: 200px;
  text-align: right;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#given:focus {
  outline: none;
  border-color: #1667b3;
  box-shadow: 0 0 10px rgba(28, 128, 215, 0.3);
}

/* Label: "Restgeld" */
#lbl_back {
  display: inline-block;
  margin-left: 20px;
  font-size: 28px;
  font-weight: 700;
  color: white;
  background: linear-gradient(145deg, #4ade80, #22c55e); /* modernes Grün */
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  min-width: 150px;
  text-align: center;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease;
}

#lbl_back.updated {
  animation: pulse 0.4s ease;
}

/* Farben für Zustände */
#lbl_back.change-positive {
  background: linear-gradient(145deg, #4ade80, #22c55e); /* Grün */
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

#lbl_back.change-negative {
  background: linear-gradient(145deg, #ef4444, #dc2626); /* Rot */
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}


input[type="checkbox"] {
  transform: scale(2); /* Faktor ändern */
  margin: 5px;           /* etwas Platz drumherum */
}

/* Responsive

@media (max-width: 767px) {
    .fl-table {
        display: block;
        width: 100%;
    }
    .table-wrapper:before{
        content: "Scroll horizontally >";
        display: block;
        text-align: right;
        font-size: 11px;
        color: white;
        padding: 0 0 10px;
    }
    .fl-table thead, .fl-table tbody, .fl-table thead th {
        display: block;
    }
    .fl-table thead th:last-child{
        border-bottom: none;
    }
    .fl-table thead {
        float: left;
    }
    .fl-table tbody {
        width: auto;
        position: relative;
        overflow-x: auto;
    }
    .fl-table td, .fl-table th {
        padding: 20px .625em .625em .625em;
        height: 60px;
        vertical-align: middle;
        box-sizing: border-box;
        overflow-x: hidden;
        overflow-y: auto;
        width: 120px;
        font-size: 13px;
        text-overflow: ellipsis;
    }
    .fl-table thead th {
        text-align: left;
        border-bottom: 1px solid #f7f7f9;
    }
    .fl-table tbody tr {
        display: table-cell;
    }
    .fl-table tbody tr:nth-child(odd) {
        background: none;
    }
    .fl-table tr:nth-child(even) {
        background: transparent;
    }
    .fl-table tr td:nth-child(odd) {
        background: #F8F8F8;
        border-right: 1px solid #E6E4E4;
    }
    .fl-table tr td:nth-child(even) {
        border-right: 1px solid #E6E4E4;
    }
    .fl-table tbody td {
        display: block;
        text-align: center;
    }
} */